$(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: [[1238544000000,5.06433],[1238630400000,5.05898],[1238716800000,5.11932],[1238803200000,5.11669],[1238889600000,5.11669],[1238976000000,5.11669],[1239062400000,5.11514],[1239148800000,5.0869],[1239235200000,5.07769],[1239321600000,5.0819],[1239408000000,5.0819],[1239494400000,5.0819],[1239580800000,5.0819],[1239667200000,5.0819],[1239753600000,5.13591],[1239840000000,5.12025],[1239926400000,5.14295],[1240012800000,5.12914],[1240099200000,5.12914],[1240185600000,5.12914],[1240272000000,5.12914],[1240358400000,5.10832],[1240444800000,5.11005],[1240531200000,5.12836],[1240617600000,5.17374],[1240704000000,5.17374],[1240790400000,5.17374],[1240876800000,5.14654],[1240963200000,5.12912],[1241049600000,5.18308]], 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: [[1238544000000, 5.064327],[1238544000000, 5.064327],[1238630400000, 5.058985],[1238716800000, 5.119317],[1238803200000, 5.116691],[1238889600000, 5.116691],[1238976000000, 5.116691],[1239062400000, 5.115141],[1239148800000, 5.086897],[1239235200000, 5.077686],[1239321600000, 5.081900],[1239408000000, 5.081900],[1239494400000, 5.081900],[1239580800000, 5.081900],[1239667200000, 5.081900],[1239753600000, 5.135912],[1239840000000, 5.120247],[1239926400000, 5.142947],[1240012800000, 5.129143],[1240099200000, 5.129143],[1240185600000, 5.129143],[1240272000000, 5.129143],[1240358400000, 5.108316],[1240444800000, 5.110047],[1240531200000, 5.128356],[1240617600000, 5.173737],[1240704000000, 5.173737],[1240790400000, 5.173737],[1240876800000, 5.146535],[1240963200000, 5.129122],[1241049600000, 5.183083]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });