$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1420070400000,24.5255],[1420156800000,24.5255],[1420243200000,24.5255],[1420329600000,24.5255],[1420416000000,24.5255],[1420502400000,24.5255],[1420588800000,24.0211],[1420675200000,24.0211],[1420761600000,null],[1420848000000,23.7282],[1420934400000,23.7282],[1421020800000,23.7282],[1421107200000,23.8683],[1421193600000,23.8897],[1421280000000,null],[1421366400000,23.9602],[1421452800000,24.1088],[1421539200000,24.0901],[1421625600000,24.0901],[1421712000000,23.9859],[1421798400000,23.8826],[1421884800000,23.9324],[1421971200000,null],[1422057600000,24.0021],[1422144000000,24.0021],[1422230400000,24.0021],[1422316800000,23.6907],[1422403200000,23.8701],[1422489600000,24.0107],[1422576000000,24.2414],[1422662400000,24.4501]], 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, 24.525514],[1420070400000, 24.525514],[1420156800000, 24.525514],[1420243200000, 24.525514],[1420329600000, 24.525514],[1420416000000, 24.525514],[1420502400000, 24.525514],[1420588800000, 24.021148],[1420675200000, 24.021148],[1420848000000, 23.728222],[1420934400000, 23.728222],[1421020800000, 23.728222],[1421107200000, 23.868296],[1421193600000, 23.889663],[1421366400000, 23.960211],[1421452800000, 24.108785],[1421539200000, 24.090097],[1421625600000, 24.090097],[1421712000000, 23.985866],[1421798400000, 23.882630],[1421884800000, 23.932392],[1422057600000, 24.002098],[1422144000000, 24.002098],[1422230400000, 24.002098],[1422316800000, 23.690678],[1422403200000, 23.870085],[1422489600000, 24.010699],[1422576000000, 24.241359],[1422662400000, 24.450110]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });