$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1459468800000,20.159],[1459555200000,20.0532],[1459641600000,20.0532],[1459728000000,20.0532],[1459814400000,19.831],[1459900800000,19.65],[1459987200000,19.5794],[1460073600000,19.4279],[1460160000000,19.2984],[1460246400000,null],[1460332800000,null],[1460419200000,19.3393],[1460505600000,19.5675],[1460592000000,19.4957],[1460678400000,19.7527],[1460764800000,19.6245],[1460851200000,19.6245],[1460937600000,19.6245],[1461024000000,19.6208],[1461110400000,19.8395],[1461196800000,19.8651],[1461283200000,19.8757],[1461369600000,19.5913],[1461456000000,19.5913],[1461542400000,19.5913],[1461628800000,19.5666],[1461715200000,19.5604],[1461801600000,19.1472],[1461888000000,19.1915],[1461974400000,19.2244]], 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, 20.159004],[1459468800000, 20.159004],[1459555200000, 20.053217],[1459641600000, 20.053217],[1459728000000, 20.053217],[1459814400000, 19.830992],[1459900800000, 19.649989],[1459987200000, 19.579417],[1460073600000, 19.427899],[1460160000000, 19.298387],[1460419200000, 19.339251],[1460505600000, 19.567509],[1460592000000, 19.495688],[1460678400000, 19.752720],[1460764800000, 19.624548],[1460851200000, 19.624548],[1460937600000, 19.624548],[1461024000000, 19.620752],[1461110400000, 19.839511],[1461196800000, 19.865067],[1461283200000, 19.875680],[1461369600000, 19.591317],[1461456000000, 19.591317],[1461542400000, 19.591317],[1461628800000, 19.566573],[1461715200000, 19.560382],[1461801600000, 19.147209],[1461888000000, 19.191506],[1461974400000, 19.224374]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });