$(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: [[1233446400000,1.12606],[1233532800000,1.12606],[1233619200000,1.12431],[1233705600000,1.12568],[1233792000000,1.12672],[1233878400000,1.12627],[1233964800000,1.12665],[1234051200000,1.12665],[1234137600000,1.12665],[1234224000000,1.12675],[1234310400000,1.12695],[1234396800000,1.12684],[1234483200000,1.12669],[1234569600000,null],[1234656000000,null],[1234742400000,1.1268],[1234828800000,1.12672],[1234915200000,1.12582],[1235001600000,1.12607],[1235088000000,1.12648],[1235174400000,1.12619],[1235260800000,1.12619],[1235347200000,1.12619],[1235433600000,1.12639],[1235520000000,1.12618],[1235606400000,1.12615],[1235692800000,1.12573],[1235779200000,1.12577]], 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: [[1233446400000, 1.126058],[1233446400000, 1.126058],[1233532800000, 1.126058],[1233619200000, 1.124306],[1233705600000, 1.125682],[1233792000000, 1.126722],[1233878400000, 1.126275],[1233964800000, 1.126653],[1234051200000, 1.126653],[1234137600000, 1.126653],[1234224000000, 1.126753],[1234310400000, 1.126954],[1234396800000, 1.126838],[1234483200000, 1.126690],[1234742400000, 1.126801],[1234828800000, 1.126719],[1234915200000, 1.125816],[1235001600000, 1.126066],[1235088000000, 1.126485],[1235174400000, 1.126194],[1235260800000, 1.126194],[1235347200000, 1.126194],[1235433600000, 1.126391],[1235520000000, 1.126181],[1235606400000, 1.126153],[1235692800000, 1.125729],[1235779200000, 1.125770]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });