$(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: [[1122854400000,4.11077],[1122940800000,4.14858],[1123027200000,4.16779],[1123113600000,4.17094],[1123200000000,4.15182],[1123286400000,null],[1123372800000,null],[1123459200000,null],[1123545600000,null],[1123632000000,4.1594],[1123718400000,4.16692],[1123804800000,4.18304],[1123891200000,4.21211],[1123977600000,4.21211],[1124064000000,4.21211],[1124150400000,4.22192],[1124236800000,4.19799],[1124323200000,4.20326],[1124409600000,4.15436],[1124496000000,4.14835],[1124582400000,4.14835],[1124668800000,4.14835],[1124755200000,4.18331],[1124841600000,4.20965],[1124928000000,4.20965],[1125014400000,4.23867],[1125100800000,4.22533],[1125187200000,4.22533],[1125273600000,4.22533],[1125360000000,4.24077],[1125446400000,4.20523]], 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: [[1122854400000, 4.110773],[1122854400000, 4.110773],[1122940800000, 4.148578],[1123027200000, 4.167794],[1123113600000, 4.170943],[1123200000000, 4.151825],[1123632000000, 4.159397],[1123718400000, 4.166923],[1123804800000, 4.183043],[1123891200000, 4.212109],[1123977600000, 4.212109],[1124064000000, 4.212109],[1124150400000, 4.221924],[1124236800000, 4.197991],[1124323200000, 4.203263],[1124409600000, 4.154361],[1124496000000, 4.148348],[1124582400000, 4.148348],[1124668800000, 4.148348],[1124755200000, 4.183308],[1124841600000, 4.209652],[1124928000000, 4.209652],[1125014400000, 4.238670],[1125100800000, 4.225328],[1125187200000, 4.225328],[1125273600000, 4.225328],[1125360000000, 4.240771],[1125446400000, 4.205226]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });