$(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: [[1372636800000,3.01682],[1372723200000,3.01798],[1372809600000,3.01335],[1372896000000,2.99992],[1372982400000,3.00571],[1373068800000,2.98233],[1373155200000,2.98233],[1373241600000,2.98233],[1373328000000,2.97469],[1373414400000,2.97631],[1373500800000,2.96612],[1373587200000,3.0196],[1373673600000,3.01728],[1373760000000,3.01728],[1373846400000,3.01728],[1373932800000,3.01219],[1374019200000,3.03673],[1374105600000,3.0409],[1374192000000,3.03094],[1374278400000,3.03789],[1374364800000,3.03789],[1374451200000,null],[1374537600000,3.04784],[1374624000000,3.05108],[1374710400000,3.06636],[1374796800000,3.05617],[1374883200000,3.0696],[1374969600000,3.0696],[1375056000000,3.0696],[1375142400000,3.07192],[1375228800000,3.07516]], 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: [[1372636800000, 3.016820],[1372636800000, 3.016820],[1372723200000, 3.017978],[1372809600000, 3.013348],[1372896000000, 2.999921],[1372982400000, 3.005709],[1373068800000, 2.982328],[1373155200000, 2.982328],[1373241600000, 2.982328],[1373328000000, 2.974689],[1373414400000, 2.976309],[1373500800000, 2.966123],[1373587200000, 3.019598],[1373673600000, 3.017283],[1373760000000, 3.017283],[1373846400000, 3.017283],[1373932800000, 3.012191],[1374019200000, 3.036729],[1374105600000, 3.040896],[1374192000000, 3.030942],[1374278400000, 3.037886],[1374364800000, 3.037886],[1374537600000, 3.047841],[1374624000000, 3.051081],[1374710400000, 3.066360],[1374796800000, 3.056174],[1374883200000, 3.069601],[1374969600000, 3.069601],[1375056000000, 3.069601],[1375142400000, 3.071916],[1375228800000, 3.075157]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });