$(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: 'Курс BYN, грн'}, 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: 'Курс BYN', data: [[1459468800000,0.0013],[1459555200000,0.00131],[1459641600000,0.00131],[1459728000000,0.00131],[1459814400000,0.00129],[1459900800000,0.00129],[1459987200000,0.00128],[1460073600000,0.00128],[1460160000000,0.00128],[1460246400000,null],[1460332800000,null],[1460419200000,0.00128],[1460505600000,0.00129],[1460592000000,0.00128],[1460678400000,0.00128],[1460764800000,0.00128],[1460851200000,0.00128],[1460937600000,0.00128],[1461024000000,0.00126],[1461110400000,0.00128],[1461196800000,0.00128],[1461283200000,0.00129],[1461369600000,0.00129],[1461456000000,0.00129],[1461542400000,0.00129],[1461628800000,0.00129],[1461715200000,0.00129],[1461801600000,0.00129],[1461888000000,0.0013],[1461974400000,0.00131]], 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: [[1459468800000, 0.001300],[1459468800000, 0.001300],[1459555200000, 0.001310],[1459641600000, 0.001310],[1459728000000, 0.001310],[1459814400000, 0.001290],[1459900800000, 0.001290],[1459987200000, 0.001280],[1460073600000, 0.001280],[1460160000000, 0.001280],[1460419200000, 0.001280],[1460505600000, 0.001290],[1460592000000, 0.001280],[1460678400000, 0.001280],[1460764800000, 0.001280],[1460851200000, 0.001280],[1460937600000, 0.001280],[1461024000000, 0.001260],[1461110400000, 0.001280],[1461196800000, 0.001280],[1461283200000, 0.001290],[1461369600000, 0.001290],[1461456000000, 0.001290],[1461542400000, 0.001290],[1461628800000, 0.001290],[1461715200000, 0.001290],[1461801600000, 0.001290],[1461888000000, 0.001300],[1461974400000, 0.001310]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });