$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1288569600000,5.51228],[1288656000000,5.54861],[1288742400000,5.5978],[1288828800000,5.61446],[1288915200000,5.68891],[1289001600000,5.66589],[1289088000000,5.66589],[1289174400000,5.66589],[1289260800000,5.61524],[1289347200000,5.62171],[1289433600000,5.58912],[1289520000000,5.55341],[1289606400000,5.54149],[1289692800000,5.54149],[1289779200000,5.54149],[1289865600000,5.47962],[1289952000000,5.45532],[1290038400000,5.43437],[1290124800000,5.48568],[1290211200000,5.48598],[1290297600000,5.48598],[1290384000000,5.48598],[1290470400000,5.49375],[1290556800000,5.37787],[1290643200000,5.36038],[1290729600000,5.37901],[1290816000000,5.32704],[1290902400000,5.32704],[1290988800000,5.32704],[1291075200000,5.28503]], 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, 5.512281],[1288569600000, 5.512281],[1288656000000, 5.548606],[1288742400000, 5.597798],[1288828800000, 5.614462],[1288915200000, 5.688909],[1289001600000, 5.665886],[1289088000000, 5.665886],[1289174400000, 5.665886],[1289260800000, 5.615245],[1289347200000, 5.621705],[1289433600000, 5.589116],[1289520000000, 5.553408],[1289606400000, 5.541494],[1289692800000, 5.541494],[1289779200000, 5.541494],[1289865600000, 5.479619],[1289952000000, 5.455318],[1290038400000, 5.434368],[1290124800000, 5.485683],[1290211200000, 5.485980],[1290297600000, 5.485980],[1290384000000, 5.485980],[1290470400000, 5.493751],[1290556800000, 5.377871],[1290643200000, 5.360381],[1290729600000, 5.379014],[1290816000000, 5.327044],[1290902400000, 5.327044],[1290988800000, 5.327044],[1291075200000, 5.285032]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });