$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1288569600000,12.4344],[1288656000000,12.4895],[1288742400000,12.489],[1288828800000,12.5245],[1288915200000,12.5822],[1289001600000,12.5443],[1289088000000,12.5443],[1289174400000,12.5443],[1289260800000,12.4654],[1289347200000,12.4845],[1289433600000,12.3838],[1289520000000,12.3827],[1289606400000,12.3898],[1289692800000,12.3898],[1289779200000,12.3898],[1289865600000,12.3518],[1289952000000,12.3393],[1290038400000,12.2918],[1290124800000,12.3574],[1290211200000,12.3847],[1290297600000,12.3847],[1290384000000,12.3847],[1290470400000,12.3714],[1290556800000,12.3196],[1290643200000,12.2355],[1290729600000,12.2355],[1290816000000,12.2344],[1290902400000,12.2344],[1290988800000,12.2344],[1291075200000,12.1559]], 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, 12.434398],[1288569600000, 12.434398],[1288656000000, 12.489530],[1288742400000, 12.488980],[1288828800000, 12.524532],[1288915200000, 12.582214],[1289001600000, 12.544299],[1289088000000, 12.544299],[1289174400000, 12.544299],[1289260800000, 12.465360],[1289347200000, 12.484534],[1289433600000, 12.383814],[1289520000000, 12.382653],[1289606400000, 12.389788],[1289692800000, 12.389788],[1289779200000, 12.389788],[1289865600000, 12.351825],[1289952000000, 12.339338],[1290038400000, 12.291838],[1290124800000, 12.357397],[1290211200000, 12.384660],[1290297600000, 12.384660],[1290384000000, 12.384660],[1290470400000, 12.371361],[1290556800000, 12.319614],[1290643200000, 12.235465],[1290729600000, 12.235465],[1290816000000, 12.234386],[1290902400000, 12.234386],[1290988800000, 12.234386],[1291075200000, 12.155942]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });