$(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: [[1367366400000,3.02608],[1367452800000,3.02608],[1367539200000,3.02608],[1367625600000,3.02608],[1367712000000,3.02608],[1367798400000,3.02608],[1367884800000,3.02608],[1367971200000,3.03418],[1368057600000,3.04066],[1368144000000,3.04066],[1368230400000,3.04066],[1368316800000,3.04066],[1368403200000,3.04066],[1368489600000,3.00316],[1368576000000,3.00409],[1368662400000,2.97793],[1368748800000,2.98395],[1368835200000,2.97909],[1368921600000,2.97909],[1369008000000,2.97909],[1369094400000,2.97538],[1369180800000,2.97839],[1369267200000,2.99159],[1369353600000,2.98348],[1369440000000,2.99529],[1369526400000,2.99529],[1369612800000,2.99529],[1369699200000,2.99529],[1369785600000,2.99506],[1369872000000,2.9983],[1369958400000,2.99645]], 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: [[1367366400000, 3.026080],[1367366400000, 3.026080],[1367452800000, 3.026080],[1367539200000, 3.026080],[1367625600000, 3.026080],[1367712000000, 3.026080],[1367798400000, 3.026080],[1367884800000, 3.026080],[1367971200000, 3.034182],[1368057600000, 3.040664],[1368144000000, 3.040664],[1368230400000, 3.040664],[1368316800000, 3.040664],[1368403200000, 3.040664],[1368489600000, 3.003162],[1368576000000, 3.004088],[1368662400000, 2.977930],[1368748800000, 2.983948],[1368835200000, 2.979087],[1368921600000, 2.979087],[1369008000000, 2.979087],[1369094400000, 2.975383],[1369180800000, 2.978393],[1369267200000, 2.991588],[1369353600000, 2.983485],[1369440000000, 2.995292],[1369526400000, 2.995292],[1369612800000, 2.995292],[1369699200000, 2.995292],[1369785600000, 2.995060],[1369872000000, 2.998301],[1369958400000, 2.996449]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });