$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1288569600000,7.74719],[1288656000000,7.78686],[1288742400000,7.83486],[1288828800000,7.85135],[1288915200000,7.90602],[1289001600000,7.90572],[1289088000000,7.90572],[1289174400000,7.90572],[1289260800000,7.89231],[1289347200000,7.91865],[1289433600000,7.87455],[1289520000000,7.89649],[1289606400000,7.84955],[1289692800000,7.84955],[1289779200000,7.84955],[1289865600000,7.86173],[1289952000000,7.81796],[1290038400000,7.76659],[1290124800000,7.79603],[1290211200000,7.77675],[1290297600000,7.77675],[1290384000000,7.77675],[1290470400000,7.8129],[1290556800000,7.7634],[1290643200000,7.81162],[1290729600000,7.86022],[1290816000000,7.76307],[1290902400000,7.76307],[1290988800000,7.76307],[1291075200000,7.77072]], 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.747189],[1288569600000, 7.747189],[1288656000000, 7.786857],[1288742400000, 7.834863],[1288828800000, 7.851349],[1288915200000, 7.906024],[1289001600000, 7.905719],[1289088000000, 7.905719],[1289174400000, 7.905719],[1289260800000, 7.892315],[1289347200000, 7.918650],[1289433600000, 7.874545],[1289520000000, 7.896492],[1289606400000, 7.849550],[1289692800000, 7.849550],[1289779200000, 7.849550],[1289865600000, 7.861733],[1289952000000, 7.817960],[1290038400000, 7.766594],[1290124800000, 7.796027],[1290211200000, 7.776751],[1290297600000, 7.776751],[1290384000000, 7.776751],[1290470400000, 7.812895],[1290556800000, 7.763403],[1290643200000, 7.811620],[1290729600000, 7.860222],[1290816000000, 7.763074],[1290902400000, 7.763074],[1290988800000, 7.763074],[1291075200000, 7.770716]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });