$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1288569600000,2.77579],[1288656000000,2.77814],[1288742400000,2.77849],[1288828800000,2.77884],[1288915200000,2.77891],[1289001600000,2.77709],[1289088000000,2.77709],[1289174400000,2.77709],[1289260800000,2.77779],[1289347200000,2.77568],[1289433600000,2.77544],[1289520000000,2.77919],[1289606400000,2.78235],[1289692800000,2.78235],[1289779200000,2.78235],[1289865600000,2.7834],[1289952000000,2.78446],[1290038400000,2.78516],[1290124800000,2.78516],[1290211200000,2.78516],[1290297600000,2.78516],[1290384000000,2.78516],[1290470400000,2.78516],[1290556800000,2.78516],[1290643200000,2.78551],[1290729600000,2.78551],[1290816000000,2.78526],[1290902400000,2.78526],[1290988800000,2.78526],[1291075200000,2.78526]], 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, 2.775789],[1288569600000, 2.775789],[1288656000000, 2.778140],[1288742400000, 2.778491],[1288828800000, 2.778842],[1288915200000, 2.778912],[1289001600000, 2.777088],[1289088000000, 2.777088],[1289174400000, 2.777088],[1289260800000, 2.777789],[1289347200000, 2.775684],[1289433600000, 2.775439],[1289520000000, 2.779193],[1289606400000, 2.782351],[1289692800000, 2.782351],[1289779200000, 2.782351],[1289865600000, 2.783404],[1289952000000, 2.784456],[1290038400000, 2.785158],[1290124800000, 2.785158],[1290211200000, 2.785158],[1290297600000, 2.785158],[1290384000000, 2.785158],[1290470400000, 2.785158],[1290556800000, 2.785158],[1290643200000, 2.785509],[1290729600000, 2.785509],[1290816000000, 2.785263],[1290902400000, 2.785263],[1290988800000, 2.785263],[1291075200000, 2.785263]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });