$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1288569600000,7.911],[1288656000000,7.9177],[1288742400000,7.9187],[1288828800000,7.9197],[1288915200000,7.9199],[1289001600000,7.9147],[1289088000000,7.9147],[1289174400000,7.9147],[1289260800000,7.9167],[1289347200000,7.9107],[1289433600000,7.91],[1289520000000,7.9207],[1289606400000,7.9297],[1289692800000,7.9297],[1289779200000,7.9297],[1289865600000,7.9327],[1289952000000,7.9357],[1290038400000,7.9377],[1290124800000,7.9377],[1290211200000,7.9377],[1290297600000,7.9377],[1290384000000,7.9377],[1290470400000,7.9377],[1290556800000,7.9377],[1290643200000,7.9387],[1290729600000,7.9387],[1290816000000,7.938],[1290902400000,7.938],[1290988800000,7.938],[1291075200000,7.938]], 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, 7.911000],[1288569600000, 7.911000],[1288656000000, 7.917700],[1288742400000, 7.918700],[1288828800000, 7.919700],[1288915200000, 7.919900],[1289001600000, 7.914700],[1289088000000, 7.914700],[1289174400000, 7.914700],[1289260800000, 7.916700],[1289347200000, 7.910700],[1289433600000, 7.910000],[1289520000000, 7.920700],[1289606400000, 7.929700],[1289692800000, 7.929700],[1289779200000, 7.929700],[1289865600000, 7.932700],[1289952000000, 7.935700],[1290038400000, 7.937700],[1290124800000, 7.937700],[1290211200000, 7.937700],[1290297600000, 7.937700],[1290384000000, 7.937700],[1290470400000, 7.937700],[1290556800000, 7.937700],[1290643200000, 7.938700],[1290729600000, 7.938700],[1290816000000, 7.938000],[1290902400000, 7.938000],[1290988800000, 7.938000],[1291075200000, 7.938000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });