$(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: [[1462060800000,36.83],[1462147200000,36.83],[1462233600000,36.83],[1462320000000,36.83],[1462406400000,36.5612],[1462492800000,36.4421],[1462579200000,36.4659],[1462665600000,36.4659],[1462752000000,36.4659],[1462838400000,36.4659],[1462924800000,36.3898],[1463011200000,36.5942],[1463097600000,36.5441],[1463184000000,36.6733],[1463270400000,36.6733],[1463356800000,36.6733],[1463443200000,36.4936],[1463529600000,36.602],[1463616000000,36.7654],[1463702400000,36.9304],[1463788800000,36.7151],[1463875200000,null],[1463961600000,36.7151],[1464048000000,36.3832],[1464134400000,36.6857],[1464220800000,36.8658],[1464307200000,36.8983],[1464393600000,36.818],[1464480000000,36.818],[1464566400000,36.818],[1464652800000,36.8242]], 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: [[1462060800000, 36.829983],[1462060800000, 36.829983],[1462147200000, 36.829983],[1462233600000, 36.829983],[1462320000000, 36.829983],[1462406400000, 36.561186],[1462492800000, 36.442084],[1462579200000, 36.465929],[1462665600000, 36.465929],[1462752000000, 36.465929],[1462838400000, 36.465929],[1462924800000, 36.389799],[1463011200000, 36.594201],[1463097600000, 36.544094],[1463184000000, 36.673263],[1463270400000, 36.673263],[1463356800000, 36.673263],[1463443200000, 36.493560],[1463529600000, 36.602001],[1463616000000, 36.765361],[1463702400000, 36.930395],[1463788800000, 36.715107],[1463961600000, 36.715107],[1464048000000, 36.383173],[1464134400000, 36.685698],[1464220800000, 36.865845],[1464307200000, 36.898347],[1464393600000, 36.818038],[1464480000000, 36.818038],[1464566400000, 36.818038],[1464652800000, 36.824183]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });