$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1504224000000,0.43887],[1504310400000,0.44351],[1504396800000,0.44351],[1504483200000,0.44351],[1504569600000,0.44835],[1504656000000,0.44865],[1504742400000,0.45314],[1504828800000,0.45507],[1504915200000,0.45745],[1505001600000,0.45745],[1505088000000,0.45745],[1505174400000,0.45494],[1505260800000,0.45436],[1505347200000,0.45224],[1505433600000,0.45286],[1505520000000,0.45581],[1505606400000,0.45581],[1505692800000,0.45581],[1505779200000,0.45433],[1505865600000,0.44969],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,0.45393],[1506729600000,0.45812]], 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, 0.438870],[1504224000000, 0.438870],[1504310400000, 0.443510],[1504396800000, 0.443510],[1504483200000, 0.443510],[1504569600000, 0.448350],[1504656000000, 0.448650],[1504742400000, 0.453140],[1504828800000, 0.455070],[1504915200000, 0.457450],[1505001600000, 0.457450],[1505088000000, 0.457450],[1505174400000, 0.454940],[1505260800000, 0.454360],[1505347200000, 0.452240],[1505433600000, 0.452860],[1505520000000, 0.455810],[1505606400000, 0.455810],[1505692800000, 0.455810],[1505779200000, 0.454330],[1505865600000, 0.449690],[1506643200000, 0.453930],[1506729600000, 0.458120]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });