$(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: [[1162339200000,6.41148],[1162425600000,6.44229],[1162512000000,6.44733],[1162598400000,6.4438],[1162684800000,6.4438],[1162771200000,6.4438],[1162857600000,6.41451],[1162944000000,6.44128],[1163030400000,6.45188],[1163116800000,6.46198],[1163203200000,6.49632],[1163289600000,6.49632],[1163376000000,6.49632],[1163462400000,6.47915],[1163548800000,6.47612],[1163635200000,6.45996],[1163721600000,6.46602],[1163808000000,6.45087],[1163894400000,6.45087],[1163980800000,6.45087],[1164067200000,6.4847],[1164153600000,6.47107],[1164240000000,6.50743],[1164326400000,6.54127],[1164412800000,6.60439],[1164499200000,6.60439],[1164585600000,6.60439],[1164672000000,6.62257],[1164758400000,6.63924],[1164844800000,6.64428]], 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: [[1162339200000, 6.411480],[1162339200000, 6.411480],[1162425600000, 6.442285],[1162512000000, 6.447335],[1162598400000, 6.443800],[1162684800000, 6.443800],[1162771200000, 6.443800],[1162857600000, 6.414510],[1162944000000, 6.441275],[1163030400000, 6.451880],[1163116800000, 6.461980],[1163203200000, 6.496320],[1163289600000, 6.496320],[1163376000000, 6.496320],[1163462400000, 6.479150],[1163548800000, 6.476120],[1163635200000, 6.459960],[1163721600000, 6.466020],[1163808000000, 6.450870],[1163894400000, 6.450870],[1163980800000, 6.450870],[1164067200000, 6.484705],[1164153600000, 6.471070],[1164240000000, 6.507430],[1164326400000, 6.541265],[1164412800000, 6.604390],[1164499200000, 6.604390],[1164585600000, 6.604390],[1164672000000, 6.622570],[1164758400000, 6.639235],[1164844800000, 6.644285]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });