$(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: [[1477958400000,1.0335],[1478044800000,null],[1478131200000,1.04942],[1478217600000,1.048],[1478304000000,1.04999],[1478390400000,1.04999],[1478476800000,1.04999],[1478563200000,1.04682],[1478649600000,1.04425],[1478736000000,1.04246],[1478822400000,1.03136],[1478908800000,1.03302],[1478995200000,1.03302],[1479081600000,1.03302],[1479168000000,1.02687],[1479254400000,1.03595],[1479340800000,1.04287],[1479427200000,1.03222],[1479513600000,1.01809],[1479600000000,1.01809],[1479686400000,1.01809],[1479772800000,1.01401],[1479859200000,1.00733],[1479945600000,1.00374],[1480032000000,0.998382],[1480118400000,1.0077],[1480204800000,1.0077],[1480291200000,1.0077],[1480377600000,1.0046],[1480464000000,1.00107]], 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: [[1477958400000, 1.033496],[1477958400000, 1.033496],[1478131200000, 1.049417],[1478217600000, 1.048004],[1478304000000, 1.049986],[1478390400000, 1.049986],[1478476800000, 1.049986],[1478563200000, 1.046825],[1478649600000, 1.044252],[1478736000000, 1.042456],[1478822400000, 1.031362],[1478908800000, 1.033022],[1478995200000, 1.033022],[1479081600000, 1.033022],[1479168000000, 1.026867],[1479254400000, 1.035948],[1479340800000, 1.042874],[1479427200000, 1.032217],[1479513600000, 1.018091],[1479600000000, 1.018091],[1479686400000, 1.018091],[1479772800000, 1.014012],[1479859200000, 1.007325],[1479945600000, 1.003737],[1480032000000, 0.998382],[1480118400000, 1.007704],[1480204800000, 1.007704],[1480291200000, 1.007704],[1480377600000, 1.004596],[1480464000000, 1.001069]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });