$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1420070400000,2.53331],[1420156800000,2.53331],[1420243200000,2.53331],[1420329600000,2.53331],[1420416000000,2.53331],[1420502400000,2.53331],[1420588800000,2.53692],[1420675200000,2.53692],[1420761600000,null],[1420848000000,2.53364],[1420934400000,2.53364],[1421020800000,2.53364],[1421107200000,2.53882],[1421193600000,2.54289],[1421280000000,null],[1421366400000,2.54582],[1421452800000,2.55089],[1421539200000,2.55785],[1421625600000,2.55785],[1421712000000,2.54678],[1421798400000,2.53555],[1421884800000,2.54033],[1421971200000,null],[1422057600000,2.54314],[1422144000000,2.54314],[1422230400000,2.54314],[1422316800000,2.53821],[1422403200000,2.54216],[1422489600000,2.54125],[1422576000000,2.55381],[1422662400000,2.58696]], 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, 2.533312],[1420070400000, 2.533312],[1420156800000, 2.533312],[1420243200000, 2.533312],[1420329600000, 2.533312],[1420416000000, 2.533312],[1420502400000, 2.533312],[1420588800000, 2.536918],[1420675200000, 2.536918],[1420848000000, 2.533644],[1420934400000, 2.533644],[1421020800000, 2.533644],[1421107200000, 2.538820],[1421193600000, 2.542891],[1421366400000, 2.545822],[1421452800000, 2.550892],[1421539200000, 2.557852],[1421625600000, 2.557852],[1421712000000, 2.546785],[1421798400000, 2.535553],[1421884800000, 2.540330],[1422057600000, 2.543136],[1422144000000, 2.543136],[1422230400000, 2.543136],[1422316800000, 2.538214],[1422403200000, 2.542162],[1422489600000, 2.541251],[1422576000000, 2.553810],[1422662400000, 2.586961]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });