$(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: [[1291161600000,2.98825],[1291248000000,3.01514],[1291334400000,3.0251],[1291420800000,3.04679],[1291507200000,3.04679],[1291593600000,3.04679],[1291680000000,3.06108],[1291766400000,3.07758],[1291852800000,3.03981],[1291939200000,3.04303],[1292025600000,3.05059],[1292112000000,3.05059],[1292198400000,3.05059],[1292284800000,3.05589],[1292371200000,3.09848],[1292457600000,3.08118],[1292544000000,3.0532],[1292630400000,3.05827],[1292716800000,3.05827],[1292803200000,3.05827],[1292889600000,3.03221],[1292976000000,3.03405],[1293062400000,3.02414],[1293148800000,3.01307],[1293235200000,3.02038],[1293321600000,3.02038],[1293408000000,3.02038],[1293494400000,3.02876],[1293580800000,3.04236],[1293667200000,3.02819],[1293753600000,3.06219]], 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: [[1291161600000, 2.988245],[1291161600000, 2.988245],[1291248000000, 3.015143],[1291334400000, 3.025101],[1291420800000, 3.046795],[1291507200000, 3.046795],[1291593600000, 3.046795],[1291680000000, 3.061077],[1291766400000, 3.077577],[1291852800000, 3.039808],[1291939200000, 3.043032],[1292025600000, 3.050592],[1292112000000, 3.050592],[1292198400000, 3.050592],[1292284800000, 3.055890],[1292371200000, 3.098478],[1292457600000, 3.081181],[1292544000000, 3.053198],[1292630400000, 3.058272],[1292716800000, 3.058272],[1292803200000, 3.058272],[1292889600000, 3.032210],[1292976000000, 3.034055],[1293062400000, 3.024137],[1293148800000, 3.013067],[1293235200000, 3.020380],[1293321600000, 3.020380],[1293408000000, 3.020380],[1293494400000, 3.028760],[1293580800000, 3.042363],[1293667200000, 3.028189],[1293753600000, 3.062192]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });