$(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: [[967766400000,4.84353],[967852800000,4.84135],[967939200000,4.84135],[968025600000,4.84135],[968112000000,4.89465],[968198400000,4.83265],[968284800000,4.79611],[968371200000,4.71888],[968457600000,4.75097],[968544000000,4.75097],[968630400000,4.75097],[968716800000,4.68244],[968803200000,4.68515],[968889600000,4.70691],[968976000000,4.72769],[969062400000,4.6857],[969148800000,4.6857],[969235200000,4.6857],[969321600000,4.63729],[969408000000,4.64545],[969494400000,4.6101],[969580800000,4.6362],[969667200000,4.83545],[969753600000,4.83545],[969840000000,4.83545],[969926400000,4.77035],[970012800000,4.76355],[970099200000,4.82012],[970185600000,4.80434],[970272000000,4.7679]], 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: [[967766400000, 4.843530],[967766400000, 4.843530],[967852800000, 4.841350],[967939200000, 4.841350],[968025600000, 4.841350],[968112000000, 4.894650],[968198400000, 4.832650],[968284800000, 4.796110],[968371200000, 4.718880],[968457600000, 4.750970],[968544000000, 4.750970],[968630400000, 4.750970],[968716800000, 4.682440],[968803200000, 4.685150],[968889600000, 4.706910],[968976000000, 4.727690],[969062400000, 4.685700],[969148800000, 4.685700],[969235200000, 4.685700],[969321600000, 4.637290],[969408000000, 4.645450],[969494400000, 4.610100],[969580800000, 4.636200],[969667200000, 4.835450],[969753600000, 4.835450],[969840000000, 4.835450],[969926400000, 4.770350],[970012800000, 4.763550],[970099200000, 4.820120],[970185600000, 4.804340],[970272000000, 4.767900]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });