$(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: [[1504224000000,1.16406],[1504310400000,1.17698],[1504396800000,1.17698],[1504483200000,1.17698],[1504569600000,1.18338],[1504656000000,1.1834],[1504742400000,1.18717],[1504828800000,1.19207],[1504915200000,1.2048],[1505001600000,1.2048],[1505088000000,1.2048],[1505174400000,1.19656],[1505260800000,1.18937],[1505347200000,1.19692],[1505433600000,1.19119],[1505520000000,1.20288],[1505606400000,1.20288],[1505692800000,1.20288],[1505779200000,1.19891],[1505865600000,1.19827],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,1.19951],[1506729600000,1.20775]], 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: [[1504224000000, 1.164059],[1504224000000, 1.164059],[1504310400000, 1.176979],[1504396800000, 1.176979],[1504483200000, 1.176979],[1504569600000, 1.183385],[1504656000000, 1.183404],[1504742400000, 1.187170],[1504828800000, 1.192066],[1504915200000, 1.204797],[1505001600000, 1.204797],[1505088000000, 1.204797],[1505174400000, 1.196558],[1505260800000, 1.189367],[1505347200000, 1.196920],[1505433600000, 1.191187],[1505520000000, 1.202877],[1505606400000, 1.202877],[1505692800000, 1.202877],[1505779200000, 1.198907],[1505865600000, 1.198275],[1506643200000, 1.199514],[1506729600000, 1.207751]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });