$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1288569600000,9.88011],[1288656000000,9.89094],[1288742400000,9.89219],[1288828800000,9.89591],[1288915200000,9.89987],[1289001600000,9.89709],[1289088000000,9.89709],[1289174400000,9.89709],[1289260800000,9.89711],[1289347200000,9.88961],[1289433600000,9.8875],[1289520000000,9.90087],[1289606400000,9.91089],[1289692800000,9.91089],[1289779200000,9.91089],[1289865600000,9.91712],[1289952000000,9.92086],[1290038400000,9.92337],[1290124800000,9.91964],[1290211200000,9.92212],[1290297600000,9.92212],[1290384000000,9.92212],[1290470400000,9.92585],[1290556800000,9.92337],[1290643200000,9.92338],[1290729600000,9.92338],[1290816000000,9.9225],[1290902400000,9.9225],[1290988800000,9.9225],[1291075200000,9.92126]], 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, 9.880105],[1288569600000, 9.880105],[1288656000000, 9.890943],[1288742400000, 9.892192],[1288828800000, 9.895914],[1288915200000, 9.899875],[1289001600000, 9.897086],[1289088000000, 9.897086],[1289174400000, 9.897086],[1289260800000, 9.897112],[1289347200000, 9.889611],[1289433600000, 9.887500],[1289520000000, 9.900875],[1289606400000, 9.910886],[1289692800000, 9.910886],[1289779200000, 9.910886],[1289865600000, 9.917115],[1289952000000, 9.920865],[1290038400000, 9.923365],[1290124800000, 9.919645],[1290211200000, 9.922125],[1290297600000, 9.922125],[1290384000000, 9.922125],[1290470400000, 9.925847],[1290556800000, 9.923365],[1290643200000, 9.923375],[1290729600000, 9.923375],[1290816000000, 9.922500],[1290902400000, 9.922500],[1290988800000, 9.922500],[1291075200000, 9.921260]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });