$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1101859200000,2.03505],[1101945600000,2.0473],[1102032000000,2.05523],[1102118400000,2.03873],[1102204800000,2.03873],[1102291200000,2.03873],[1102377600000,2.0629],[1102464000000,2.06419],[1102550400000,2.05027],[1102636800000,2.04987],[1102723200000,null],[1102809600000,null],[1102896000000,null],[1102982400000,2.03904],[1103068800000,2.04573],[1103155200000,2.04778],[1103241600000,2.0625],[1103328000000,2.03822],[1103414400000,2.03822],[1103500800000,2.03822],[1103587200000,2.04889],[1103673600000,2.0542],[1103760000000,2.05611],[1103846400000,2.06596],[1103932800000,2.0759],[1104019200000,2.0759],[1104105600000,2.0759],[1104192000000,2.07981],[1104278400000,2.09252],[1104364800000,2.09434],[1104451200000,2.09327]], 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: [[1101859200000, 2.035054],[1101859200000, 2.035054],[1101945600000, 2.047303],[1102032000000, 2.055233],[1102118400000, 2.038729],[1102204800000, 2.038729],[1102291200000, 2.038729],[1102377600000, 2.062903],[1102464000000, 2.064187],[1102550400000, 2.050270],[1102636800000, 2.049874],[1102982400000, 2.039044],[1103068800000, 2.045726],[1103155200000, 2.047779],[1103241600000, 2.062505],[1103328000000, 2.038222],[1103414400000, 2.038222],[1103500800000, 2.038222],[1103587200000, 2.048888],[1103673600000, 2.054203],[1103760000000, 2.056113],[1103846400000, 2.065961],[1103932800000, 2.075903],[1104019200000, 2.075903],[1104105600000, 2.075903],[1104192000000, 2.079809],[1104278400000, 2.092522],[1104364800000, 2.094343],[1104451200000, 2.093273]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });