$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1467331200000,1.01598],[1467417600000,1.02014],[1467504000000,1.02014],[1467590400000,1.02014],[1467676800000,1.02011],[1467763200000,1.02299],[1467849600000,1.01549],[1467936000000,1.01648],[1468022400000,1.01707],[1468108800000,1.01707],[1468195200000,1.01707],[1468281600000,1.01561],[1468368000000,1.01925],[1468454400000,1.01661],[1468540800000,1.02285],[1468627200000,1.02091],[1468713600000,1.02091],[1468800000000,1.02091],[1468886400000,1.01665],[1468972800000,1.01364],[1469059200000,1.01121],[1469145600000,1.01147],[1469232000000,1.01131],[1469318400000,1.01131],[1469404800000,1.01131],[1469491200000,1.00729],[1469577600000,1.00871],[1469664000000,1.00886],[1469750400000,null],[1469836800000,1.01985],[1469923200000,1.01985]], 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: [[1467331200000, 1.015978],[1467331200000, 1.015978],[1467417600000, 1.020140],[1467504000000, 1.020140],[1467590400000, 1.020140],[1467676800000, 1.020109],[1467763200000, 1.022987],[1467849600000, 1.015494],[1467936000000, 1.016481],[1468022400000, 1.017067],[1468108800000, 1.017067],[1468195200000, 1.017067],[1468281600000, 1.015611],[1468368000000, 1.019249],[1468454400000, 1.016614],[1468540800000, 1.022853],[1468627200000, 1.020911],[1468713600000, 1.020911],[1468800000000, 1.020911],[1468886400000, 1.016651],[1468972800000, 1.013644],[1469059200000, 1.011213],[1469145600000, 1.011469],[1469232000000, 1.011307],[1469318400000, 1.011307],[1469404800000, 1.011307],[1469491200000, 1.007286],[1469577600000, 1.008710],[1469664000000, 1.008861],[1469836800000, 1.019848],[1469923200000, 1.019848]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });