$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1546300800000,20.275],[1546387200000,20.275],[1546473600000,20.275],[1546560000000,20.1408],[1546646400000,20.3524],[1546732800000,20.3524],[1546819200000,20.3524],[1546905600000,20.3524],[1546992000000,20.6181],[1547078400000,20.739],[1547164800000,20.9251],[1547251200000,20.8354],[1547337600000,20.8354],[1547424000000,20.8354],[1547510400000,20.6974],[1547596800000,20.7947],[1547683200000,20.6612],[1547769600000,20.6751],[1547856000000,20.6323],[1547942400000,20.6323],[1548028800000,20.6323],[1548115200000,20.5442],[1548201600000,20.4976],[1548288000000,20.3837],[1548374400000,20.423],[1548460800000,20.5051],[1548547200000,20.5051],[1548633600000,20.5051],[1548720000000,20.531],[1548806400000,20.5395],[1548892800000,20.5439]], 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: [[1546300800000, 20.274989],[1546300800000, 20.274989],[1546387200000, 20.274989],[1546473600000, 20.274989],[1546560000000, 20.140802],[1546646400000, 20.352354],[1546732800000, 20.352354],[1546819200000, 20.352354],[1546905600000, 20.352354],[1546992000000, 20.618147],[1547078400000, 20.739009],[1547164800000, 20.925061],[1547251200000, 20.835361],[1547337600000, 20.835361],[1547424000000, 20.835361],[1547510400000, 20.697377],[1547596800000, 20.794728],[1547683200000, 20.661236],[1547769600000, 20.675059],[1547856000000, 20.632312],[1547942400000, 20.632312],[1548028800000, 20.632312],[1548115200000, 20.544217],[1548201600000, 20.497628],[1548288000000, 20.383721],[1548374400000, 20.423008],[1548460800000, 20.505127],[1548547200000, 20.505127],[1548633600000, 20.505127],[1548720000000, 20.531047],[1548806400000, 20.539531],[1548892800000, 20.543870]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });