$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1517443200000,3.55212],[1517529600000,3.54203],[1517616000000,3.54669],[1517702400000,3.54669],[1517788800000,3.54669],[1517875200000,3.50949],[1517961600000,3.43077],[1518048000000,3.39405],[1518134400000,3.35789],[1518220800000,3.33933],[1518307200000,3.33933],[1518393600000,3.33933],[1518480000000,3.31814],[1518566400000,3.31312],[1518652800000,3.31437],[1518739200000,3.37074],[1518825600000,3.39333],[1518912000000,3.39333],[1518998400000,3.39333],[1519084800000,3.38075],[1519171200000,3.35126],[1519257600000,3.33451],[1519344000000,3.32457],[1519430400000,3.30009],[1519516800000,3.30009],[1519603200000,3.30009],[1519689600000,3.3128],[1519776000000,3.28859]], 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, 3.552116],[1517443200000, 3.552116],[1517529600000, 3.542034],[1517616000000, 3.546686],[1517702400000, 3.546686],[1517788800000, 3.546686],[1517875200000, 3.509488],[1517961600000, 3.430765],[1518048000000, 3.394046],[1518134400000, 3.357889],[1518220800000, 3.339328],[1518307200000, 3.339328],[1518393600000, 3.339328],[1518480000000, 3.318145],[1518566400000, 3.313123],[1518652800000, 3.314365],[1518739200000, 3.370743],[1518825600000, 3.393327],[1518912000000, 3.393327],[1518998400000, 3.393327],[1519084800000, 3.380747],[1519171200000, 3.351257],[1519257600000, 3.334505],[1519344000000, 3.324570],[1519430400000, 3.300095],[1519516800000, 3.300095],[1519603200000, 3.300095],[1519689600000, 3.312804],[1519776000000, 3.288588]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });