$(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: [[1191196800000,2.07379],[1191283200000,2.08155],[1191369600000,2.07175],[1191456000000,2.07613],[1191542400000,2.06356],[1191628800000,2.06751],[1191715200000,2.06751],[1191801600000,2.06751],[1191888000000,2.06063],[1191974400000,2.05302],[1192060800000,2.06897],[1192147200000,2.07672],[1192233600000,2.07292],[1192320000000,2.07292],[1192406400000,2.07292],[1192492800000,2.08067],[1192579200000,2.06955],[1192665600000,2.07687],[1192752000000,2.09135],[1192838400000,2.08974],[1192924800000,2.08974],[1193011200000,2.08974],[1193097600000,2.07189],[1193184000000,2.08476],[1193270400000,2.08125],[1193356800000,2.09281],[1193443200000,2.10378],[1193529600000,2.10378],[1193616000000,2.10378],[1193702400000,2.1048],[1193788800000,2.10714]], 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: [[1191196800000, 2.073794],[1191196800000, 2.073794],[1191283200000, 2.081545],[1191369600000, 2.071746],[1191456000000, 2.076134],[1191542400000, 2.063556],[1191628800000, 2.067505],[1191715200000, 2.067505],[1191801600000, 2.067505],[1191888000000, 2.060631],[1191974400000, 2.053025],[1192060800000, 2.068967],[1192147200000, 2.076719],[1192233600000, 2.072916],[1192320000000, 2.072916],[1192406400000, 2.072916],[1192492800000, 2.080668],[1192579200000, 2.069552],[1192665600000, 2.076865],[1192752000000, 2.091345],[1192838400000, 2.089736],[1192924800000, 2.089736],[1193011200000, 2.089736],[1193097600000, 2.071892],[1193184000000, 2.084763],[1193270400000, 2.081253],[1193356800000, 2.092807],[1193443200000, 2.103777],[1193529600000, 2.103777],[1193616000000, 2.103777],[1193702400000, 2.104800],[1193788800000, 2.107141]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });