$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1288569600000,10.9623],[1288656000000,11.0262],[1288742400000,11.1004],[1288828800000,11.0987],[1288915200000,11.2811],[1289001600000,11.1471],[1289088000000,11.1471],[1289174400000,11.1471],[1289260800000,11.0177],[1289347200000,11.0315],[1289433600000,10.8921],[1289520000000,10.8514],[1289606400000,10.8724],[1289692800000,10.8724],[1289779200000,10.8724],[1289865600000,10.8091],[1289952000000,10.8021],[1290038400000,10.7008],[1290124800000,10.8326],[1290211200000,10.854],[1290297600000,10.854],[1290384000000,10.854],[1290470400000,10.8326],[1290556800000,10.7127],[1290643200000,10.5894],[1290729600000,10.5751],[1290816000000,10.498],[1290902400000,10.498],[1290988800000,10.498],[1291075200000,10.4353]], 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, 10.962273],[1288569600000, 10.962273],[1288656000000, 11.026189],[1288742400000, 11.100434],[1288828800000, 11.098668],[1288915200000, 11.281106],[1289001600000, 11.147063],[1289088000000, 11.147063],[1289174400000, 11.147063],[1289260800000, 11.017671],[1289347200000, 11.031471],[1289433600000, 10.892070],[1289520000000, 10.851359],[1289606400000, 10.872412],[1289692800000, 10.872412],[1289779200000, 10.872412],[1289865600000, 10.809097],[1289952000000, 10.802075],[1290038400000, 10.700813],[1290124800000, 10.832579],[1290211200000, 10.854011],[1290297600000, 10.854011],[1290384000000, 10.854011],[1290470400000, 10.832579],[1290556800000, 10.712720],[1290643200000, 10.589432],[1290729600000, 10.575142],[1290816000000, 10.498005],[1290902400000, 10.498005],[1290988800000, 10.498005],[1291075200000, 10.435295]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });