$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1459468800000,0.38638],[1459555200000,0.38886],[1459641600000,0.38886],[1459728000000,0.38886],[1459814400000,0.37852],[1459900800000,0.37853],[1459987200000,0.37883],[1460073600000,0.38057],[1460160000000,0.37989],[1460246400000,null],[1460332800000,null],[1460419200000,0.38094],[1460505600000,0.38515],[1460592000000,0.38749],[1460678400000,0.38571],[1460764800000,0.38572],[1460851200000,0.38572],[1460937600000,0.38572],[1461024000000,0.37328],[1461110400000,0.38758],[1461196800000,0.38481],[1461283200000,0.39021],[1461369600000,0.38272],[1461456000000,0.38272],[1461542400000,0.38272],[1461628800000,0.3803],[1461715200000,0.38073],[1461801600000,0.38696],[1461888000000,0.38681],[1461974400000,0.39172]], 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.386380],[1459468800000, 0.386380],[1459555200000, 0.388860],[1459641600000, 0.388860],[1459728000000, 0.388860],[1459814400000, 0.378520],[1459900800000, 0.378530],[1459987200000, 0.378830],[1460073600000, 0.380570],[1460160000000, 0.379890],[1460419200000, 0.380940],[1460505600000, 0.385150],[1460592000000, 0.387490],[1460678400000, 0.385710],[1460764800000, 0.385720],[1460851200000, 0.385720],[1460937600000, 0.385720],[1461024000000, 0.373280],[1461110400000, 0.387580],[1461196800000, 0.384810],[1461283200000, 0.390210],[1461369600000, 0.382720],[1461456000000, 0.382720],[1461542400000, 0.382720],[1461628800000, 0.380300],[1461715200000, 0.380730],[1461801600000, 0.386960],[1461888000000, 0.386810],[1461974400000, 0.391720]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });