$(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: [[1288569600000,1.18592],[1288656000000,1.18148],[1288742400000,1.18584],[1288828800000,1.18627],[1288915200000,1.18855],[1289001600000,1.189],[1289088000000,1.189],[1289174400000,1.189],[1289260800000,1.18547],[1289347200000,1.19065],[1289433600000,1.1924],[1289520000000,1.19545],[1289606400000,1.19477],[1289692800000,1.19477],[1289779200000,1.19477],[1289865600000,1.19398],[1289952000000,1.19552],[1290038400000,1.19498],[1290124800000,1.19659],[1290211200000,1.19552],[1290297600000,1.19552],[1290384000000,1.19552],[1290470400000,1.19515],[1290556800000,1.19455],[1290643200000,1.19301],[1290729600000,1.19365],[1290816000000,1.19055],[1290902400000,1.19055],[1290988800000,1.19055],[1291075200000,1.19179]], 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: [[1288569600000, 1.185918],[1288569600000, 1.185918],[1288656000000, 1.181483],[1288742400000, 1.185842],[1288828800000, 1.186275],[1288915200000, 1.188548],[1289001600000, 1.188995],[1289088000000, 1.188995],[1289174400000, 1.188995],[1289260800000, 1.185473],[1289347200000, 1.190648],[1289433600000, 1.192397],[1289520000000, 1.195452],[1289606400000, 1.194771],[1289692800000, 1.194771],[1289779200000, 1.194771],[1289865600000, 1.193980],[1289952000000, 1.195515],[1290038400000, 1.194981],[1290124800000, 1.196587],[1290211200000, 1.195520],[1290297600000, 1.195520],[1290384000000, 1.195520],[1290470400000, 1.195148],[1290556800000, 1.194550],[1290643200000, 1.193014],[1290729600000, 1.193650],[1290816000000, 1.190547],[1290902400000, 1.190547],[1290988800000, 1.190547],[1291075200000, 1.191788]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });