$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1459468800000,20.2534],[1459555200000,20.0398],[1459641600000,20.0398],[1459728000000,20.0398],[1459814400000,19.9446],[1459900800000,19.8036],[1459987200000,19.733],[1460073600000,19.6703],[1460160000000,19.5971],[1460246400000,null],[1460332800000,null],[1460419200000,19.687],[1460505600000,19.8449],[1460592000000,19.9027],[1460678400000,19.9936],[1460764800000,19.7771],[1460851200000,19.7771],[1460937600000,19.7771],[1461024000000,19.7188],[1461110400000,20.017],[1461196800000,20.051],[1461283200000,20.0835],[1461369600000,19.9028],[1461456000000,19.9028],[1461542400000,19.9028],[1461628800000,19.9788],[1461715200000,20.0043],[1461801600000,20.0384],[1461888000000,20.0581],[1461974400000,20.1152]], 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.253384],[1459468800000, 20.253384],[1459555200000, 20.039753],[1459641600000, 20.039753],[1459728000000, 20.039753],[1459814400000, 19.944641],[1459900800000, 19.803586],[1459987200000, 19.733038],[1460073600000, 19.670324],[1460160000000, 19.597064],[1460419200000, 19.686976],[1460505600000, 19.844873],[1460592000000, 19.902691],[1460678400000, 19.993574],[1460764800000, 19.777116],[1460851200000, 19.777116],[1460937600000, 19.777116],[1461024000000, 19.718775],[1461110400000, 20.017018],[1461196800000, 20.051031],[1461283200000, 20.083497],[1461369600000, 19.902767],[1461456000000, 19.902767],[1461542400000, 19.902767],[1461628800000, 19.978833],[1461715200000, 20.004313],[1461801600000, 20.038403],[1461888000000, 20.058097],[1461974400000, 20.115214]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });