$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1504224000000,25.694],[1504310400000,25.7484],[1504396800000,25.7484],[1504483200000,25.7484],[1504569600000,25.9062],[1504656000000,25.9543],[1504742400000,25.9822],[1504828800000,26.0032],[1504915200000,26.073],[1505001600000,26.073],[1505088000000,26.073],[1505174400000,26.0087],[1505260800000,26.019],[1505347200000,26.0796],[1505433600000,26.162],[1505520000000,26.2244],[1505606400000,26.2244],[1505692800000,26.2244],[1505779200000,26.1807],[1505865600000,26.1264],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,26.5211],[1506729600000,26.5785]], 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, 25.693957],[1504224000000, 25.693957],[1504310400000, 25.748384],[1504396800000, 25.748384],[1504483200000, 25.748384],[1504569600000, 25.906249],[1504656000000, 25.954263],[1504742400000, 25.982213],[1504828800000, 26.003183],[1504915200000, 26.072964],[1505001600000, 26.072964],[1505088000000, 26.072964],[1505174400000, 26.008703],[1505260800000, 26.018958],[1505347200000, 26.079643],[1505433600000, 26.162016],[1505520000000, 26.224386],[1505606400000, 26.224386],[1505692800000, 26.224386],[1505779200000, 26.180679],[1505865600000, 26.126436],[1506643200000, 26.521094],[1506729600000, 26.578496]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });