$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[967766400000,7.89877],[967852800000,7.89137],[967939200000,7.89137],[968025600000,7.89137],[968112000000,7.95361],[968198400000,7.89133],[968284800000,7.87927],[968371200000,7.80367],[968457600000,7.75795],[968544000000,7.75795],[968630400000,7.75795],[968716800000,7.70391],[968803200000,7.62434],[968889600000,7.66348],[968976000000,7.70861],[969062400000,7.65012],[969148800000,7.65012],[969235200000,7.65012],[969321600000,7.6071],[969408000000,7.63552],[969494400000,7.69761],[969580800000,7.72186],[969667200000,7.97534],[969753600000,7.97534],[969840000000,7.97534],[969926400000,7.91366],[970012800000,7.90236],[970099200000,7.97373],[970185600000,7.97401],[970272000000,7.99044]], 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, 7.898770],[967766400000, 7.898770],[967852800000, 7.891370],[967939200000, 7.891370],[968025600000, 7.891370],[968112000000, 7.953610],[968198400000, 7.891330],[968284800000, 7.879270],[968371200000, 7.803670],[968457600000, 7.757950],[968544000000, 7.757950],[968630400000, 7.757950],[968716800000, 7.703910],[968803200000, 7.624340],[968889600000, 7.663480],[968976000000, 7.708610],[969062400000, 7.650120],[969148800000, 7.650120],[969235200000, 7.650120],[969321600000, 7.607100],[969408000000, 7.635520],[969494400000, 7.697610],[969580800000, 7.721860],[969667200000, 7.975340],[969753600000, 7.975340],[969840000000, 7.975340],[969926400000, 7.913660],[970012800000, 7.902360],[970099200000, 7.973730],[970185600000, 7.974010],[970272000000, 7.990440]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });