$(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: [[1412121600000,10.1636],[1412208000000,10.1485],[1412294400000,10.1467],[1412380800000,10.1643],[1412467200000,10.1643],[1412553600000,10.1643],[1412640000000,10.1532],[1412726400000,10.1483],[1412812800000,10.1387],[1412899200000,10.1101],[1412985600000,10.212],[1413072000000,10.212],[1413158400000,10.212],[1413244800000,10.1645],[1413331200000,10.19],[1413417600000,10.1608],[1413504000000,10.143],[1413590400000,10.1578],[1413676800000,10.1578],[1413763200000,10.1578],[1413849600000,10.1723],[1413936000000,10.1871],[1414022400000,10.1879],[1414108800000,10.2011],[1414195200000,10.1691],[1414281600000,10.1691],[1414368000000,10.1691],[1414454400000,10.146],[1414540800000,10.1505],[1414627200000,10.1755],[1414713600000,10.1864]], 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: [[1412121600000, 10.163614],[1412121600000, 10.163614],[1412208000000, 10.148509],[1412294400000, 10.146654],[1412380800000, 10.164256],[1412467200000, 10.164256],[1412553600000, 10.164256],[1412640000000, 10.153213],[1412726400000, 10.148343],[1412812800000, 10.138684],[1412899200000, 10.110071],[1412985600000, 10.211995],[1413072000000, 10.211995],[1413158400000, 10.211995],[1413244800000, 10.164453],[1413331200000, 10.189981],[1413417600000, 10.160761],[1413504000000, 10.143016],[1413590400000, 10.157804],[1413676800000, 10.157804],[1413763200000, 10.157804],[1413849600000, 10.172290],[1413936000000, 10.187079],[1414022400000, 10.187947],[1414108800000, 10.201101],[1414195200000, 10.169085],[1414281600000, 10.169085],[1414368000000, 10.169085],[1414454400000, 10.146034],[1414540800000, 10.150524],[1414627200000, 10.175525],[1414713600000, 10.186445]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });