$(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: 'Курс ISK, грн'}, 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: 'Курс ISK', data: [[1193875200000,0.084227],[1193961600000,0.08574],[1194048000000,0.08578],[1194134400000,0.08578],[1194220800000,0.08578],[1194307200000,0.085253],[1194393600000,0.086062],[1194480000000,0.086049],[1194566400000,0.08513],[1194652800000,0.083965],[1194739200000,0.083965],[1194825600000,0.083965],[1194912000000,0.082966],[1194998400000,0.083615],[1195084800000,0.084502],[1195171200000,0.08359],[1195257600000,0.083085],[1195344000000,0.083085],[1195430400000,0.083085],[1195516800000,0.082694],[1195603200000,0.080319],[1195689600000,0.081254],[1195776000000,0.080075],[1195862400000,0.080466],[1195948800000,0.080466],[1196035200000,0.080466],[1196121600000,0.08081],[1196208000000,0.080044],[1196294400000,0.081045],[1196380800000,0.082067]], 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: [[1193875200000, 0.084227],[1193875200000, 0.084227],[1193961600000, 0.085740],[1194048000000, 0.085780],[1194134400000, 0.085780],[1194220800000, 0.085780],[1194307200000, 0.085253],[1194393600000, 0.086062],[1194480000000, 0.086049],[1194566400000, 0.085130],[1194652800000, 0.083965],[1194739200000, 0.083965],[1194825600000, 0.083965],[1194912000000, 0.082966],[1194998400000, 0.083615],[1195084800000, 0.084502],[1195171200000, 0.083590],[1195257600000, 0.083085],[1195344000000, 0.083085],[1195430400000, 0.083085],[1195516800000, 0.082694],[1195603200000, 0.080319],[1195689600000, 0.081254],[1195776000000, 0.080075],[1195862400000, 0.080466],[1195948800000, 0.080466],[1196035200000, 0.080466],[1196121600000, 0.080810],[1196208000000, 0.080044],[1196294400000, 0.081045],[1196380800000, 0.082067]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });