$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1504224000000,3.20436],[1504310400000,3.23831],[1504396800000,3.23831],[1504483200000,3.23831],[1504569600000,3.25561],[1504656000000,3.25902],[1504742400000,3.26275],[1504828800000,3.26763],[1504915200000,3.29643],[1505001600000,3.29643],[1505088000000,3.29643],[1505174400000,3.26029],[1505260800000,3.25609],[1505347200000,3.27215],[1505433600000,3.26116],[1505520000000,3.30032],[1505606400000,3.30032],[1505692800000,3.30032],[1505779200000,3.28769],[1505865600000,3.28346],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,3.2606],[1506729600000,3.252]], 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, 3.204360],[1504224000000, 3.204360],[1504310400000, 3.238312],[1504396800000, 3.238312],[1504483200000, 3.238312],[1504569600000, 3.255612],[1504656000000, 3.259016],[1504742400000, 3.262749],[1504828800000, 3.267629],[1504915200000, 3.296431],[1505001600000, 3.296431],[1505088000000, 3.296431],[1505174400000, 3.260294],[1505260800000, 3.256088],[1505347200000, 3.272145],[1505433600000, 3.261163],[1505520000000, 3.300325],[1505606400000, 3.300325],[1505692800000, 3.300325],[1505779200000, 3.287685],[1505865600000, 3.283460],[1506643200000, 3.260600],[1506729600000, 3.252003]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });