$(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: [[1517443200000,0.111652],[1517529600000,0.111987],[1517616000000,0.112561],[1517702400000,0.112561],[1517788800000,0.112561],[1517875200000,0.111472],[1517961600000,0.108986],[1518048000000,0.108002],[1518134400000,0.10687],[1518220800000,0.106412],[1518307200000,0.106412],[1518393600000,0.106412],[1518480000000,0.105505],[1518566400000,0.105486],[1518652800000,0.105215],[1518739200000,0.107261],[1518825600000,0.108075],[1518912000000,0.108075],[1518998400000,0.108075],[1519084800000,0.107735],[1519171200000,0.107152],[1519257600000,0.106448],[1519344000000,0.106282],[1519430400000,0.10609],[1519516800000,0.10609],[1519603200000,0.10609],[1519689600000,0.106101],[1519776000000,0.10558]], 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, 0.111652],[1517443200000, 0.111652],[1517529600000, 0.111987],[1517616000000, 0.112561],[1517702400000, 0.112561],[1517788800000, 0.112561],[1517875200000, 0.111472],[1517961600000, 0.108986],[1518048000000, 0.108002],[1518134400000, 0.106870],[1518220800000, 0.106412],[1518307200000, 0.106412],[1518393600000, 0.106412],[1518480000000, 0.105505],[1518566400000, 0.105486],[1518652800000, 0.105215],[1518739200000, 0.107261],[1518825600000, 0.108075],[1518912000000, 0.108075],[1518998400000, 0.108075],[1519084800000, 0.107735],[1519171200000, 0.107152],[1519257600000, 0.106448],[1519344000000, 0.106282],[1519430400000, 0.106090],[1519516800000, 0.106090],[1519603200000, 0.106090],[1519689600000, 0.106101],[1519776000000, 0.105580]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });