$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1491004800000,0.093911],[1491091200000,0.093911],[1491177600000,0.093911],[1491264000000,0.093336],[1491350400000,0.093362],[1491436800000,0.09357],[1491523200000,0.093315],[1491609600000,0.092387],[1491696000000,0.092387],[1491782400000,0.092387],[1491868800000,0.091505],[1491955200000,0.091684],[1492041600000,0.09136],[1492128000000,0.091367],[1492214400000,0.091189],[1492300800000,0.091189],[1492387200000,0.091189],[1492473600000,0.091189],[1492560000000,0.091739],[1492646400000,0.091772],[1492732800000,0.091707],[1492819200000,0.091027],[1492905600000,0.091027],[1492992000000,0.091027],[1493078400000,0.0929],[1493164800000,0.093053],[1493251200000,0.092852],[1493337600000,0.092589],[1493424000000,0.092935],[1493510400000,0.092935]], 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, 0.093911],[1491004800000, 0.093911],[1491091200000, 0.093911],[1491177600000, 0.093911],[1491264000000, 0.093336],[1491350400000, 0.093362],[1491436800000, 0.093570],[1491523200000, 0.093315],[1491609600000, 0.092387],[1491696000000, 0.092387],[1491782400000, 0.092387],[1491868800000, 0.091505],[1491955200000, 0.091684],[1492041600000, 0.091360],[1492128000000, 0.091367],[1492214400000, 0.091189],[1492300800000, 0.091189],[1492387200000, 0.091189],[1492473600000, 0.091189],[1492560000000, 0.091739],[1492646400000, 0.091772],[1492732800000, 0.091707],[1492819200000, 0.091027],[1492905600000, 0.091027],[1492992000000, 0.091027],[1493078400000, 0.092900],[1493164800000, 0.093053],[1493251200000, 0.092852],[1493337600000, 0.092589],[1493424000000, 0.092935],[1493510400000, 0.092935]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });