$(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: [[1120262400000,1.76194],[1120348800000,1.76194],[1120435200000,1.76194],[1120521600000,1.74799],[1120608000000,1.73897],[1120694400000,1.73897],[1120780800000,1.74636],[1120867200000,1.74431],[1120953600000,1.74431],[1121040000000,1.74431],[1121126400000,1.76004],[1121212800000,1.78106],[1121299200000,1.78609],[1121385600000,1.76853],[1121472000000,1.77668],[1121558400000,1.77668],[1121644800000,1.77668],[1121731200000,1.76742],[1121817600000,1.7571],[1121904000000,1.76438],[1121990400000,1.77986],[1122076800000,1.78093],[1122163200000,1.78093],[1122249600000,1.78093],[1122336000000,1.76173],[1122422400000,1.76161],[1122508800000,1.75414],[1122595200000,1.76351],[1122681600000,1.77324],[1122768000000,1.77324]], 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: [[1120262400000, 1.761938],[1120262400000, 1.761938],[1120348800000, 1.761938],[1120435200000, 1.761938],[1120521600000, 1.747986],[1120608000000, 1.738966],[1120694400000, 1.738966],[1120780800000, 1.746355],[1120867200000, 1.744306],[1120953600000, 1.744306],[1121040000000, 1.744306],[1121126400000, 1.760036],[1121212800000, 1.781058],[1121299200000, 1.786093],[1121385600000, 1.768534],[1121472000000, 1.776677],[1121558400000, 1.776677],[1121644800000, 1.776677],[1121731200000, 1.767421],[1121817600000, 1.757100],[1121904000000, 1.764377],[1121990400000, 1.779861],[1122076800000, 1.780928],[1122163200000, 1.780928],[1122249600000, 1.780928],[1122336000000, 1.761730],[1122422400000, 1.761607],[1122508800000, 1.754142],[1122595200000, 1.763514],[1122681600000, 1.773236],[1122768000000, 1.773236]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });