$(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: [[1285891200000,1.18216],[1285977600000,1.18214],[1286064000000,1.18214],[1286150400000,1.18214],[1286236800000,1.18213],[1286323200000,1.18213],[1286409600000,1.18214],[1286496000000,1.18439],[1286582400000,1.18578],[1286668800000,1.18578],[1286755200000,1.18578],[1286841600000,1.18629],[1286928000000,1.18529],[1287014400000,1.18694],[1287100800000,1.18915],[1287187200000,1.1909],[1287273600000,1.1909],[1287360000000,1.1909],[1287446400000,1.19078],[1287532800000,1.19066],[1287619200000,1.18937],[1287705600000,1.18964],[1287792000000,1.18813],[1287878400000,1.18813],[1287964800000,1.18813],[1288051200000,1.18826],[1288137600000,1.18745],[1288224000000,1.18427],[1288310400000,1.18307],[1288396800000,1.18592],[1288483200000,1.18592]], 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: [[1285891200000, 1.182156],[1285891200000, 1.182156],[1285977600000, 1.182140],[1286064000000, 1.182140],[1286150400000, 1.182140],[1286236800000, 1.182133],[1286323200000, 1.182131],[1286409600000, 1.182138],[1286496000000, 1.184391],[1286582400000, 1.185784],[1286668800000, 1.185784],[1286755200000, 1.185784],[1286841600000, 1.186289],[1286928000000, 1.185290],[1287014400000, 1.186936],[1287100800000, 1.189149],[1287187200000, 1.190898],[1287273600000, 1.190898],[1287360000000, 1.190898],[1287446400000, 1.190776],[1287532800000, 1.190662],[1287619200000, 1.189374],[1287705600000, 1.189643],[1287792000000, 1.188130],[1287878400000, 1.188130],[1287964800000, 1.188130],[1288051200000, 1.188264],[1288137600000, 1.187453],[1288224000000, 1.184269],[1288310400000, 1.183065],[1288396800000, 1.185918],[1288483200000, 1.185918]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });