$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1517443200000,1.37245],[1517529600000,1.37423],[1517616000000,1.38284],[1517702400000,1.38284],[1517788800000,1.38284],[1517875200000,1.36973],[1517961600000,1.34176],[1518048000000,1.32621],[1518134400000,1.31629],[1518220800000,1.31079],[1518307200000,1.31079],[1518393600000,1.31079],[1518480000000,1.29799],[1518566400000,1.29711],[1518652800000,1.29733],[1518739200000,1.31774],[1518825600000,1.3276],[1518912000000,1.3276],[1518998400000,1.3276],[1519084800000,1.32356],[1519171200000,1.31954],[1519257600000,1.31019],[1519344000000,1.31274],[1519430400000,1.31007],[1519516800000,1.31007],[1519603200000,1.31007],[1519689600000,1.31039],[1519776000000,1.30518]], 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: [[1517443200000, 1.372453],[1517443200000, 1.372453],[1517529600000, 1.374226],[1517616000000, 1.382844],[1517702400000, 1.382844],[1517788800000, 1.382844],[1517875200000, 1.369726],[1517961600000, 1.341755],[1518048000000, 1.326207],[1518134400000, 1.316289],[1518220800000, 1.310794],[1518307200000, 1.310794],[1518393600000, 1.310794],[1518480000000, 1.297987],[1518566400000, 1.297111],[1518652800000, 1.297331],[1518739200000, 1.317738],[1518825600000, 1.327602],[1518912000000, 1.327602],[1518998400000, 1.327602],[1519084800000, 1.323560],[1519171200000, 1.319536],[1519257600000, 1.310188],[1519344000000, 1.312743],[1519430400000, 1.310074],[1519516800000, 1.310074],[1519603200000, 1.310074],[1519689600000, 1.310391],[1519776000000, 1.305180]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });