$(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: [[1283299200000,1.15855],[1283385600000,1.15776],[1283472000000,1.16001],[1283558400000,1.16232],[1283644800000,1.16232],[1283731200000,1.16232],[1283817600000,1.16513],[1283904000000,1.16444],[1283990400000,1.16395],[1284076800000,1.16586],[1284163200000,1.16826],[1284249600000,1.16826],[1284336000000,1.16826],[1284422400000,1.16954],[1284508800000,1.17371],[1284595200000,1.17458],[1284681600000,1.17761],[1284768000000,1.17784],[1284854400000,1.17784],[1284940800000,1.17784],[1285027200000,1.17945],[1285113600000,1.18057],[1285200000000,1.18058],[1285286400000,1.18014],[1285372800000,1.17912],[1285459200000,1.17912],[1285545600000,1.17912],[1285632000000,1.18248],[1285718400000,1.18278],[1285804800000,1.18345]], 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: [[1283299200000, 1.158546],[1283299200000, 1.158546],[1283385600000, 1.157765],[1283472000000, 1.160009],[1283558400000, 1.162321],[1283644800000, 1.162321],[1283731200000, 1.162321],[1283817600000, 1.165129],[1283904000000, 1.164438],[1283990400000, 1.163949],[1284076800000, 1.165856],[1284163200000, 1.168263],[1284249600000, 1.168263],[1284336000000, 1.168263],[1284422400000, 1.169538],[1284508800000, 1.173709],[1284595200000, 1.174578],[1284681600000, 1.177610],[1284768000000, 1.177838],[1284854400000, 1.177838],[1284940800000, 1.177838],[1285027200000, 1.179450],[1285113600000, 1.180573],[1285200000000, 1.180583],[1285286400000, 1.180136],[1285372800000, 1.179122],[1285459200000, 1.179122],[1285545600000, 1.179122],[1285632000000, 1.182480],[1285718400000, 1.182785],[1285804800000, 1.183451]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });