$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1491004800000,1.06877],[1491091200000,1.06877],[1491177600000,1.06877],[1491264000000,1.06534],[1491350400000,1.06766],[1491436800000,1.07171],[1491523200000,1.08113],[1491609600000,1.07945],[1491696000000,1.07945],[1491782400000,1.07945],[1491868800000,1.07396],[1491955200000,1.07099],[1492041600000,1.0676],[1492128000000,1.06938],[1492214400000,1.0673],[1492300800000,1.0673],[1492387200000,1.0673],[1492473600000,1.0673],[1492560000000,1.07163],[1492646400000,1.07222],[1492732800000,1.0685],[1492819200000,1.06185],[1492905600000,1.06185],[1492992000000,1.06185],[1493078400000,1.07997],[1493164800000,1.08344],[1493251200000,1.07482],[1493337600000,1.07253],[1493424000000,1.07834],[1493510400000,1.07834]], 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, 1.068773],[1491004800000, 1.068773],[1491091200000, 1.068773],[1491177600000, 1.068773],[1491264000000, 1.065337],[1491350400000, 1.067657],[1491436800000, 1.071707],[1491523200000, 1.081134],[1491609600000, 1.079447],[1491696000000, 1.079447],[1491782400000, 1.079447],[1491868800000, 1.073959],[1491955200000, 1.070990],[1492041600000, 1.067597],[1492128000000, 1.069377],[1492214400000, 1.067301],[1492300800000, 1.067301],[1492387200000, 1.067301],[1492473600000, 1.067301],[1492560000000, 1.071631],[1492646400000, 1.072223],[1492732800000, 1.068499],[1492819200000, 1.061847],[1492905600000, 1.061847],[1492992000000, 1.061847],[1493078400000, 1.079970],[1493164800000, 1.083438],[1493251200000, 1.074823],[1493337600000, 1.072526],[1493424000000, 1.078341],[1493510400000, 1.078341]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });