$(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: [[1420070400000,13.5605],[1420156800000,13.5605],[1420243200000,13.5605],[1420329600000,13.5605],[1420416000000,13.5605],[1420502400000,13.5605],[1420588800000,13.3903],[1420675200000,13.3903],[1420761600000,null],[1420848000000,13.3291],[1420934400000,13.3291],[1421020800000,13.3291],[1421107200000,13.3316],[1421193600000,13.2539],[1421280000000,null],[1421366400000,13.185],[1421452800000,13.3499],[1421539200000,13.192],[1421625600000,13.192],[1421712000000,13.135],[1421798400000,13.1624],[1421884800000,13.1396],[1421971200000,null],[1422057600000,12.7828],[1422144000000,12.7828],[1422230400000,12.7828],[1422316800000,12.7029],[1422403200000,12.7614],[1422489600000,12.7384],[1422576000000,12.845],[1422662400000,12.8941]], 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: [[1420070400000, 13.560536],[1420070400000, 13.560536],[1420156800000, 13.560536],[1420243200000, 13.560536],[1420329600000, 13.560536],[1420416000000, 13.560536],[1420502400000, 13.560536],[1420588800000, 13.390323],[1420675200000, 13.390323],[1420848000000, 13.329100],[1420934400000, 13.329100],[1421020800000, 13.329100],[1421107200000, 13.331579],[1421193600000, 13.253889],[1421366400000, 13.185004],[1421452800000, 13.349881],[1421539200000, 13.192031],[1421625600000, 13.192031],[1421712000000, 13.134953],[1421798400000, 13.162410],[1421884800000, 13.139589],[1422057600000, 12.782835],[1422144000000, 12.782835],[1422230400000, 12.782835],[1422316800000, 12.702909],[1422403200000, 12.761439],[1422489600000, 12.738370],[1422576000000, 12.844996],[1422662400000, 12.894118]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });