$(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: [[1168041600000,1.91364],[1168128000000,1.91364],[1168214400000,1.91364],[1168300800000,1.91364],[1168387200000,1.90399],[1168473600000,1.8996],[1168560000000,1.89901],[1168646400000,1.88571],[1168732800000,1.88571],[1168819200000,1.88571],[1168905600000,1.89273],[1168992000000,1.89448],[1169078400000,1.88805],[1169164800000,1.88995],[1169251200000,1.89521],[1169337600000,1.89521],[1169424000000,1.89521],[1169510400000,1.892],[1169596800000,1.90721],[1169683200000,1.90209],[1169769600000,1.89814],[1169856000000,1.88688],[1169942400000,1.88688],[1170028800000,1.88688],[1170115200000,1.8898],[1170201600000,1.89726]], 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: [[1168041600000, 1.913641],[1168041600000, 1.913641],[1168128000000, 1.913641],[1168214400000, 1.913641],[1168300800000, 1.913641],[1168387200000, 1.903988],[1168473600000, 1.899600],[1168560000000, 1.899015],[1168646400000, 1.885706],[1168732800000, 1.885706],[1168819200000, 1.885706],[1168905600000, 1.892726],[1168992000000, 1.894481],[1169078400000, 1.888046],[1169164800000, 1.889947],[1169251200000, 1.895213],[1169337600000, 1.895213],[1169424000000, 1.895213],[1169510400000, 1.891995],[1169596800000, 1.907206],[1169683200000, 1.902087],[1169769600000, 1.898138],[1169856000000, 1.886876],[1169942400000, 1.886876],[1170028800000, 1.886876],[1170115200000, 1.889801],[1170201600000, 1.897260]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });