$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1298937600000,1.47214],[1299024000000,1.47176],[1299110400000,1.47],[1299196800000,1.47427],[1299283200000,1.4852],[1299369600000,1.4852],[1299456000000,1.4852],[1299542400000,1.4852],[1299628800000,1.4852],[1299715200000,1.4819],[1299801600000,1.47007],[1299888000000,1.46537],[1299974400000,1.46537],[1300060800000,1.46537],[1300147200000,1.48395],[1300233600000,1.47812],[1300320000000,1.48587],[1300406400000,1.49152],[1300492800000,1.50602],[1300579200000,1.50602],[1300665600000,1.50602],[1300752000000,1.51278],[1300838400000,1.51457],[1300924800000,1.50713],[1301011200000,1.50762],[1301097600000,1.50651],[1301184000000,1.50651],[1301270400000,1.50651],[1301356800000,1.49777],[1301443200000,1.5014],[1301529600000,1.50398]], 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: [[1298937600000, 1.472140],[1298937600000, 1.472140],[1299024000000, 1.471763],[1299110400000, 1.470004],[1299196800000, 1.474270],[1299283200000, 1.485204],[1299369600000, 1.485204],[1299456000000, 1.485204],[1299542400000, 1.485204],[1299628800000, 1.485204],[1299715200000, 1.481900],[1299801600000, 1.470070],[1299888000000, 1.465369],[1299974400000, 1.465369],[1300060800000, 1.465369],[1300147200000, 1.483948],[1300233600000, 1.478122],[1300320000000, 1.485873],[1300406400000, 1.491518],[1300492800000, 1.506021],[1300579200000, 1.506021],[1300665600000, 1.506021],[1300752000000, 1.512782],[1300838400000, 1.514573],[1300924800000, 1.507129],[1301011200000, 1.507622],[1301097600000, 1.506508],[1301184000000, 1.506508],[1301270400000, 1.506508],[1301356800000, 1.497770],[1301443200000, 1.501399],[1301529600000, 1.503981]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });