$(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: [[1143849600000,3.1215],[1143936000000,3.1215],[1144022400000,3.1215],[1144108800000,3.12417],[1144195200000,3.1332],[1144281600000,3.1398],[1144368000000,3.14877],[1144454400000,3.14598],[1144540800000,3.14598],[1144627200000,3.14598],[1144713600000,3.14365],[1144800000000,3.12623],[1144886400000,3.13219],[1144972800000,3.14106],[1145059200000,3.14106],[1145145600000,3.14106],[1145232000000,3.14106],[1145318400000,3.14106],[1145404800000,3.15258],[1145491200000,3.16131],[1145577600000,3.16131],[1145664000000,3.15994],[1145750400000,3.15994],[1145836800000,3.15994],[1145923200000,3.15994],[1146009600000,3.18154],[1146096000000,3.17863],[1146182400000,3.18195],[1146268800000,3.18903],[1146355200000,3.18903]], 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: [[1143849600000, 3.121499],[1143849600000, 3.121499],[1143936000000, 3.121499],[1144022400000, 3.121499],[1144108800000, 3.124168],[1144195200000, 3.133200],[1144281600000, 3.139798],[1144368000000, 3.148769],[1144454400000, 3.145982],[1144540800000, 3.145982],[1144627200000, 3.145982],[1144713600000, 3.143648],[1144800000000, 3.126227],[1144886400000, 3.132193],[1144972800000, 3.141056],[1145059200000, 3.141056],[1145145600000, 3.141056],[1145232000000, 3.141056],[1145318400000, 3.141056],[1145404800000, 3.152583],[1145491200000, 3.161307],[1145577600000, 3.161307],[1145664000000, 3.159939],[1145750400000, 3.159939],[1145836800000, 3.159939],[1145923200000, 3.159939],[1146009600000, 3.181536],[1146096000000, 3.178635],[1146182400000, 3.181946],[1146268800000, 3.189032],[1146355200000, 3.189032]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });