$(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: [[1459468800000,0.0763],[1459555200000,0.076231],[1459641600000,0.076231],[1459728000000,0.076231],[1459814400000,0.075566],[1459900800000,0.075472],[1459987200000,0.075341],[1460073600000,0.075621],[1460160000000,0.075313],[1460246400000,null],[1460332800000,null],[1460419200000,0.075906],[1460505600000,0.076133],[1460592000000,0.076353],[1460678400000,0.076629],[1460764800000,0.076179],[1460851200000,0.076179],[1460937600000,0.076179],[1461024000000,0.074905],[1461110400000,0.075279],[1461196800000,0.075373],[1461283200000,0.076309],[1461369600000,0.075745],[1461456000000,0.075745],[1461542400000,0.075745],[1461628800000,0.075908],[1461715200000,0.075922],[1461801600000,0.075662],[1461888000000,0.076074],[1461974400000,0.076272]], 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.076300],[1459468800000, 0.076300],[1459555200000, 0.076231],[1459641600000, 0.076231],[1459728000000, 0.076231],[1459814400000, 0.075566],[1459900800000, 0.075472],[1459987200000, 0.075341],[1460073600000, 0.075621],[1460160000000, 0.075313],[1460419200000, 0.075906],[1460505600000, 0.076133],[1460592000000, 0.076353],[1460678400000, 0.076629],[1460764800000, 0.076179],[1460851200000, 0.076179],[1460937600000, 0.076179],[1461024000000, 0.074905],[1461110400000, 0.075279],[1461196800000, 0.075373],[1461283200000, 0.076309],[1461369600000, 0.075745],[1461456000000, 0.075745],[1461542400000, 0.075745],[1461628800000, 0.075908],[1461715200000, 0.075922],[1461801600000, 0.075662],[1461888000000, 0.076074],[1461974400000, 0.076272]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });