$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1506816000000,0.077899],[1506902400000,0.077899],[1506988800000,0.078111],[1507075200000,0.078],[1507161600000,0.078021],[1507248000000,0.07768],[1507334400000,0.077809],[1507420800000,0.077809],[1507507200000,0.077809],[1507593600000,0.077643],[1507680000000,0.078779],[1507766400000,0.079076],[1507852800000,0.079685],[1507939200000,0.079685],[1508025600000,0.079685],[1508112000000,0.079685],[1508198400000,0.079685],[1508284800000,0.079406],[1508371200000,0.07922],[1508457600000,0.079315],[1508544000000,0.079164],[1508630400000,0.079164],[1508716800000,0.079164],[1508803200000,null],[1508889600000,0.079626],[1508976000000,0.080405],[1509062400000,0.08035],[1509148800000,0.08037],[1509235200000,0.08037],[1509321600000,0.08037],[1509408000000,0.080328]], 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: [[1506816000000, 0.077899],[1506816000000, 0.077899],[1506902400000, 0.077899],[1506988800000, 0.078111],[1507075200000, 0.078000],[1507161600000, 0.078021],[1507248000000, 0.077680],[1507334400000, 0.077809],[1507420800000, 0.077809],[1507507200000, 0.077809],[1507593600000, 0.077643],[1507680000000, 0.078779],[1507766400000, 0.079076],[1507852800000, 0.079685],[1507939200000, 0.079685],[1508025600000, 0.079685],[1508112000000, 0.079685],[1508198400000, 0.079685],[1508284800000, 0.079406],[1508371200000, 0.079220],[1508457600000, 0.079315],[1508544000000, 0.079164],[1508630400000, 0.079164],[1508716800000, 0.079164],[1508889600000, 0.079626],[1508976000000, 0.080405],[1509062400000, 0.080350],[1509148800000, 0.080370],[1509235200000, 0.080370],[1509321600000, 0.080370],[1509408000000, 0.080328]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });