$(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: [[1354320000000,3.00617],[1354406400000,3.00617],[1354492800000,3.00617],[1354579200000,3.02261],[1354665600000,3.03071],[1354752000000,3.02446],[1354838400000,3.02608],[1354924800000,2.98742],[1355011200000,2.98742],[1355097600000,2.98742],[1355184000000,2.99321],[1355270400000,3.00779],[1355356800000,3.01867],[1355443200000,3.02724],[1355529600000,3.02816],[1355616000000,3.02816],[1355702400000,3.02816],[1355788800000,3.04645],[1355875200000,3.05062],[1355961600000,3.07932],[1356048000000,3.06636],[1356134400000,3.0578],[1356220800000,3.0578],[1356307200000,3.0578],[1356393600000,3.05988],[1356480000000,3.05988],[1356566400000,3.05988],[1356652800000,3.07099],[1356739200000,3.05178],[1356825600000,3.05178],[1356912000000,3.05178]], 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: [[1354320000000, 3.006172],[1354320000000, 3.006172],[1354406400000, 3.006172],[1354492800000, 3.006172],[1354579200000, 3.022608],[1354665600000, 3.030710],[1354752000000, 3.024460],[1354838400000, 3.026080],[1354924800000, 2.987421],[1355011200000, 2.987421],[1355097600000, 2.987421],[1355184000000, 2.993208],[1355270400000, 3.007792],[1355356800000, 3.018672],[1355443200000, 3.027238],[1355529600000, 3.028164],[1355616000000, 3.028164],[1355702400000, 3.028164],[1355788800000, 3.046452],[1355875200000, 3.050618],[1355961600000, 3.079324],[1356048000000, 3.066360],[1356134400000, 3.057795],[1356220800000, 3.057795],[1356307200000, 3.057795],[1356393600000, 3.059878],[1356480000000, 3.059878],[1356566400000, 3.059878],[1356652800000, 3.070990],[1356739200000, 3.051776],[1356825600000, 3.051776],[1356912000000, 3.051776]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });