$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1420070400000,22.844],[1420156800000,22.844],[1420243200000,22.844],[1420329600000,22.844],[1420416000000,22.844],[1420502400000,22.844],[1420588800000,22.6201],[1420675200000,22.6201],[1420761600000,null],[1420848000000,22.4624],[1420934400000,22.4624],[1421020800000,22.4624],[1421107200000,22.5211],[1421193600000,22.5266],[1421280000000,null],[1421366400000,22.5497],[1421452800000,22.5523],[1421539200000,22.5846],[1421625600000,22.5846],[1421712000000,22.4869],[1421798400000,22.4363],[1421884800000,22.4143],[1421971200000,null],[1422057600000,22.4744],[1422144000000,22.4744],[1422230400000,22.4744],[1422316800000,22.1536],[1422403200000,22.3201],[1422489600000,22.3252],[1422576000000,22.5239],[1422662400000,22.7654]], 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, 22.843975],[1420070400000, 22.843975],[1420156800000, 22.843975],[1420243200000, 22.843975],[1420329600000, 22.843975],[1420416000000, 22.843975],[1420502400000, 22.843975],[1420588800000, 22.620147],[1420675200000, 22.620147],[1420848000000, 22.462379],[1420934400000, 22.462379],[1421020800000, 22.462379],[1421107200000, 22.521095],[1421193600000, 22.526610],[1421366400000, 22.549713],[1421452800000, 22.552254],[1421539200000, 22.584597],[1421625600000, 22.584597],[1421712000000, 22.486880],[1421798400000, 22.436339],[1421884800000, 22.414268],[1422057600000, 22.474412],[1422144000000, 22.474412],[1422230400000, 22.474412],[1422316800000, 22.153569],[1422403200000, 22.320102],[1422489600000, 22.325170],[1422576000000, 22.523906],[1422662400000, 22.765409]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });