$(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: [[1251763200000,5.53437],[1251849600000,5.53312],[1251936000000,5.53185],[1252022400000,5.55116],[1252108800000,5.55757],[1252195200000,5.55757],[1252281600000,5.55757],[1252368000000,5.5789],[1252454400000,5.6065],[1252540800000,5.6094],[1252627200000,5.6046],[1252713600000,5.62423],[1252800000000,5.62423],[1252886400000,5.62423],[1252972800000,5.61143],[1253059200000,5.62365],[1253145600000,5.66773],[1253232000000,5.65436],[1253318400000,5.65955],[1253404800000,5.65955],[1253491200000,5.65955],[1253577600000,5.64574],[1253664000000,5.67227],[1253750400000,5.66907],[1253836800000,5.67147],[1253923200000,5.65064],[1254009600000,5.65064],[1254096000000,5.65064],[1254182400000,5.6441],[1254268800000,5.64592]], 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: [[1251763200000, 5.534366],[1251763200000, 5.534366],[1251849600000, 5.533120],[1251936000000, 5.531847],[1252022400000, 5.551163],[1252108800000, 5.557571],[1252195200000, 5.557571],[1252281600000, 5.557571],[1252368000000, 5.578903],[1252454400000, 5.606500],[1252540800000, 5.609401],[1252627200000, 5.604596],[1252713600000, 5.624232],[1252800000000, 5.624232],[1252886400000, 5.624232],[1252972800000, 5.611434],[1253059200000, 5.623647],[1253145600000, 5.667726],[1253232000000, 5.654360],[1253318400000, 5.659548],[1253404800000, 5.659548],[1253491200000, 5.659548],[1253577600000, 5.645742],[1253664000000, 5.672267],[1253750400000, 5.669071],[1253836800000, 5.671467],[1253923200000, 5.650635],[1254009600000, 5.650635],[1254096000000, 5.650635],[1254182400000, 5.644101],[1254268800000, 5.645923]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });