$(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: [[1235865600000,6.09063],[1235952000000,6.09063],[1236038400000,5.97629],[1236124800000,5.98899],[1236211200000,5.98375],[1236297600000,5.99005],[1236384000000,5.99499],[1236470400000,5.99499],[1236556800000,5.99499],[1236643200000,5.99499],[1236729600000,null],[1236816000000,6.03076],[1236902400000,5.97943],[1236988800000,6.05426],[1237075200000,6.05426],[1237161600000,6.05426],[1237248000000,6.07375],[1237334400000,6.04143],[1237420800000,6.10403],[1237507200000,6.29134],[1237593600000,6.22107],[1237680000000,6.22107],[1237766400000,6.22107],[1237852800000,6.23152],[1237939200000,6.28043],[1238025600000,6.26002],[1238112000000,6.27126],[1238198400000,6.22471],[1238284800000,6.22471],[1238371200000,6.22471],[1238457600000,6.14444]], 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: [[1235865600000, 6.090635],[1235865600000, 6.090635],[1235952000000, 6.090635],[1236038400000, 5.976289],[1236124800000, 5.988994],[1236211200000, 5.983752],[1236297600000, 5.990055],[1236384000000, 5.994993],[1236470400000, 5.994993],[1236556800000, 5.994993],[1236643200000, 5.994993],[1236816000000, 6.030763],[1236902400000, 5.979429],[1236988800000, 6.054256],[1237075200000, 6.054256],[1237161600000, 6.054256],[1237248000000, 6.073751],[1237334400000, 6.041431],[1237420800000, 6.104027],[1237507200000, 6.291340],[1237593600000, 6.221067],[1237680000000, 6.221067],[1237766400000, 6.221067],[1237852800000, 6.231517],[1237939200000, 6.280429],[1238025600000, 6.260019],[1238112000000, 6.271258],[1238198400000, 6.224705],[1238284800000, 6.224705],[1238371200000, 6.224705],[1238457600000, 6.144444]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });