$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1491004800000,20.2516],[1491091200000,20.2516],[1491177600000,20.2516],[1491264000000,20.2481],[1491350400000,20.1707],[1491436800000,20.2913],[1491523200000,20.1824],[1491609600000,20.1132],[1491696000000,20.1132],[1491782400000,20.1132],[1491868800000,20.1272],[1491955200000,20.1927],[1492041600000,20.1939],[1492128000000,20.2976],[1492214400000,20.2582],[1492300800000,20.2582],[1492387200000,20.2582],[1492473600000,20.2582],[1492560000000,20.0909],[1492646400000,19.93],[1492732800000,19.8359],[1492819200000,19.8423],[1492905600000,19.8423],[1492992000000,19.8423],[1493078400000,19.8597],[1493164800000,19.611],[1493251200000,19.5804],[1493337600000,19.5431],[1493424000000,19.4657],[1493510400000,19.4657]], 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: [[1491004800000, 20.251628],[1491004800000, 20.251628],[1491091200000, 20.251628],[1491177600000, 20.251628],[1491264000000, 20.248062],[1491350400000, 20.170668],[1491436800000, 20.291270],[1491523200000, 20.182382],[1491609600000, 20.113185],[1491696000000, 20.113185],[1491782400000, 20.113185],[1491868800000, 20.127151],[1491955200000, 20.192688],[1492041600000, 20.193885],[1492128000000, 20.297572],[1492214400000, 20.258169],[1492300800000, 20.258169],[1492387200000, 20.258169],[1492473600000, 20.258169],[1492560000000, 20.090931],[1492646400000, 19.930035],[1492732800000, 19.835870],[1492819200000, 19.842315],[1492905600000, 19.842315],[1492992000000, 19.842315],[1493078400000, 19.859730],[1493164800000, 19.611040],[1493251200000, 19.580356],[1493337600000, 19.543148],[1493424000000, 19.465667],[1493510400000, 19.465667]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });