$(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: [[991353600000,4.59184],[991440000000,4.59058],[991526400000,4.59058],[991612800000,4.59058],[991699200000,4.59058],[991785600000,4.58312],[991872000000,4.62509],[991958400000,4.58358],[992044800000,4.58254],[992131200000,4.58254],[992217600000,4.58254],[992304000000,4.59491],[992390400000,4.58291],[992476800000,4.61866],[992563200000,4.58814],[992649600000,4.67999],[992736000000,4.67999],[992822400000,4.67999],[992908800000,4.63357],[992995200000,4.61948],[993081600000,4.58953],[993168000000,4.60953],[993254400000,4.59378],[993340800000,4.59378],[993427200000,4.59378],[993513600000,4.63427],[993600000000,4.6341],[993686400000,4.64105],[993772800000,4.64105],[993859200000,4.64105]], 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: [[991353600000, 4.591840],[991353600000, 4.591840],[991440000000, 4.590580],[991526400000, 4.590580],[991612800000, 4.590580],[991699200000, 4.590580],[991785600000, 4.583120],[991872000000, 4.625090],[991958400000, 4.583580],[992044800000, 4.582540],[992131200000, 4.582540],[992217600000, 4.582540],[992304000000, 4.594910],[992390400000, 4.582910],[992476800000, 4.618660],[992563200000, 4.588140],[992649600000, 4.679990],[992736000000, 4.679990],[992822400000, 4.679990],[992908800000, 4.633570],[992995200000, 4.619480],[993081600000, 4.589530],[993168000000, 4.609530],[993254400000, 4.593780],[993340800000, 4.593780],[993427200000, 4.593780],[993513600000, 4.634270],[993600000000, 4.634100],[993686400000, 4.641050],[993772800000, 4.641050],[993859200000, 4.641050]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });