$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс HUF, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс HUF', data: [[1538352000000,0.100889],[1538438400000,0.101361],[1538524800000,0.100904],[1538611200000,0.101291],[1538697600000,0.099889],[1538784000000,0.099555],[1538870400000,0.099555],[1538956800000,0.099555],[1539043200000,0.099216],[1539129600000,0.098715],[1539216000000,0.099072],[1539302400000,0.099677],[1539388800000,0.099719],[1539475200000,0.099719],[1539561600000,0.099719],[1539648000000,0.099719],[1539734400000,0.100486],[1539820800000,0.099793],[1539907200000,0.100044],[1539993600000,0.100015],[1540080000000,0.100015],[1540166400000,0.100015],[1540252800000,0.099887],[1540339200000,0.100089],[1540425600000,0.099412],[1540512000000,0.099867],[1540598400000,0.09885],[1540684800000,0.09885],[1540771200000,0.09885],[1540857600000,0.098944],[1540944000000,0.098565]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1538352000000, 0.100889],[1538352000000, 0.100889],[1538438400000, 0.101361],[1538524800000, 0.100904],[1538611200000, 0.101291],[1538697600000, 0.099889],[1538784000000, 0.099555],[1538870400000, 0.099555],[1538956800000, 0.099555],[1539043200000, 0.099216],[1539129600000, 0.098715],[1539216000000, 0.099072],[1539302400000, 0.099677],[1539388800000, 0.099719],[1539475200000, 0.099719],[1539561600000, 0.099719],[1539648000000, 0.099719],[1539734400000, 0.100486],[1539820800000, 0.099793],[1539907200000, 0.100044],[1539993600000, 0.100015],[1540080000000, 0.100015],[1540166400000, 0.100015],[1540252800000, 0.099887],[1540339200000, 0.100089],[1540425600000, 0.099412],[1540512000000, 0.099867],[1540598400000, 0.098850],[1540684800000, 0.098850],[1540771200000, 0.098850],[1540857600000, 0.098944],[1540944000000, 0.098565]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });