$(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: [[1183248000000,1.96542],[1183334400000,1.96542],[1183420800000,1.98735],[1183507200000,1.98926],[1183593600000,1.99174],[1183680000000,1.99496],[1183766400000,1.98853],[1183852800000,1.98853],[1183939200000,1.98853],[1184025600000,1.99218],[1184112000000,1.99876],[1184198400000,2.01149],[1184284800000,2.01661],[1184371200000,2.01573],[1184457600000,2.01573],[1184544000000,2.01573],[1184630400000,2.01558],[1184716800000,2.01412],[1184803200000,2.01529],[1184889600000,2.02129],[1184976000000,2.0188],[1185062400000,2.0188],[1185148800000,2.0188],[1185235200000,2.02143],[1185321600000,2.02319],[1185408000000,2.01003],[1185494400000,2.00695],[1185580800000,1.99657],[1185667200000,1.99657],[1185753600000,1.99657]], 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: [[1183248000000, 1.965416],[1183248000000, 1.965416],[1183334400000, 1.965416],[1183420800000, 1.987355],[1183507200000, 1.989257],[1183593600000, 1.991743],[1183680000000, 1.994961],[1183766400000, 1.988525],[1183852800000, 1.988525],[1183939200000, 1.988525],[1184025600000, 1.992182],[1184112000000, 1.998763],[1184198400000, 2.011488],[1184284800000, 2.016607],[1184371200000, 2.015729],[1184457600000, 2.015729],[1184544000000, 2.015729],[1184630400000, 2.015583],[1184716800000, 2.014120],[1184803200000, 2.015290],[1184889600000, 2.021287],[1184976000000, 2.018801],[1185062400000, 2.018801],[1185148800000, 2.018801],[1185235200000, 2.021433],[1185321600000, 2.023188],[1185408000000, 2.010025],[1185494400000, 2.006954],[1185580800000, 1.996569],[1185667200000, 1.996569],[1185753600000, 1.996569]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });