$(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: [[1354320000000,10.3797],[1354406400000,10.3797],[1354492800000,10.3797],[1354579200000,10.4365],[1354665600000,10.4644],[1354752000000,10.4429],[1354838400000,10.4484],[1354924800000,10.315],[1355011200000,10.315],[1355097600000,10.315],[1355184000000,10.3349],[1355270400000,10.3853],[1355356800000,10.4229],[1355443200000,10.4524],[1355529600000,10.4556],[1355616000000,10.4556],[1355702400000,10.4556],[1355788800000,10.5188],[1355875200000,10.5332],[1355961600000,10.6323],[1356048000000,10.5875],[1356134400000,10.558],[1356220800000,10.558],[1356307200000,10.558],[1356393600000,10.5651],[1356480000000,10.5651],[1356566400000,10.5651],[1356652800000,10.6035],[1356739200000,10.5372],[1356825600000,10.5372],[1356912000000,10.5372]], 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: [[1354320000000, 10.379710],[1354320000000, 10.379710],[1354406400000, 10.379710],[1354492800000, 10.379710],[1354579200000, 10.436460],[1354665600000, 10.464436],[1354752000000, 10.442855],[1354838400000, 10.448450],[1354924800000, 10.314967],[1355011200000, 10.314967],[1355097600000, 10.314967],[1355184000000, 10.334949],[1355270400000, 10.385305],[1355356800000, 10.422872],[1355443200000, 10.452446],[1355529600000, 10.455643],[1355616000000, 10.455643],[1355702400000, 10.455643],[1355788800000, 10.518788],[1355875200000, 10.533175],[1355961600000, 10.632289],[1356048000000, 10.587528],[1356134400000, 10.557954],[1356220800000, 10.557954],[1356307200000, 10.557954],[1356393600000, 10.565147],[1356480000000, 10.565147],[1356566400000, 10.565147],[1356652800000, 10.603514],[1356739200000, 10.537172],[1356825600000, 10.537172],[1356912000000, 10.537172]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });