$(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: [[1375315200000,1.30415],[1375401600000,1.30383],[1375488000000,1.30405],[1375574400000,null],[1375660800000,1.30405],[1375747200000,1.30505],[1375833600000,1.3057],[1375920000000,1.30622],[1376006400000,1.30592],[1376092800000,1.30561],[1376179200000,1.30561],[1376265600000,1.30561],[1376352000000,1.30561],[1376438400000,1.30583],[1376524800000,1.30614],[1376611200000,1.30753],[1376697600000,1.30712],[1376784000000,1.30712],[1376870400000,1.30712],[1376956800000,1.30543],[1377043200000,1.30506],[1377129600000,1.30531],[1377216000000,1.30583],[1377302400000,1.30562],[1377388800000,1.30562],[1377475200000,1.30562],[1377561600000,1.30562],[1377648000000,1.30569],[1377734400000,1.30601],[1377820800000,1.30563],[1377907200000,1.30635]], 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: [[1375315200000, 1.304152],[1375315200000, 1.304152],[1375401600000, 1.303830],[1375488000000, 1.304050],[1375660800000, 1.304050],[1375747200000, 1.305046],[1375833600000, 1.305702],[1375920000000, 1.306216],[1376006400000, 1.305921],[1376092800000, 1.305611],[1376179200000, 1.305611],[1376265600000, 1.305611],[1376352000000, 1.305606],[1376438400000, 1.305834],[1376524800000, 1.306145],[1376611200000, 1.307534],[1376697600000, 1.307115],[1376784000000, 1.307115],[1376870400000, 1.307115],[1376956800000, 1.305427],[1377043200000, 1.305059],[1377129600000, 1.305314],[1377216000000, 1.305834],[1377302400000, 1.305624],[1377388800000, 1.305624],[1377475200000, 1.305624],[1377561600000, 1.305624],[1377648000000, 1.305687],[1377734400000, 1.306008],[1377820800000, 1.305626],[1377907200000, 1.306355]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });