$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1191196800000,10.1739],[1191283200000,10.209],[1191369600000,10.1668],[1191456000000,10.1941],[1191542400000,10.1251],[1191628800000,10.1359],[1191715200000,10.1359],[1191801600000,10.1359],[1191888000000,10.0936],[1191974400000,10.0563],[1192060800000,10.1531],[1192147200000,10.1839],[1192233600000,10.1826],[1192320000000,10.1826],[1192406400000,10.1826],[1192492800000,10.2178],[1192579200000,10.1647],[1192665600000,10.202],[1192752000000,10.2863],[1192838400000,10.2828],[1192924800000,10.2828],[1193011200000,10.2828],[1193097600000,10.1994],[1193184000000,10.2569],[1193270400000,10.2323],[1193356800000,10.2803],[1193443200000,10.346],[1193529600000,10.346],[1193616000000,10.346],[1193702400000,10.3496],[1193788800000,10.3552]], 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, 10.173906],[1191196800000, 10.173906],[1191283200000, 10.209034],[1191369600000, 10.166750],[1191456000000, 10.194077],[1191542400000, 10.125117],[1191628800000, 10.135851],[1191715200000, 10.135851],[1191801600000, 10.135851],[1191888000000, 10.093552],[1191974400000, 10.056299],[1192060800000, 10.153113],[1192147200000, 10.183916],[1192233600000, 10.182622],[1192320000000, 10.182622],[1192406400000, 10.182622],[1192492800000, 10.217793],[1192579200000, 10.164651],[1192665600000, 10.202020],[1192752000000, 10.286318],[1192838400000, 10.282799],[1192924800000, 10.282799],[1193011200000, 10.282799],[1193097600000, 10.199358],[1193184000000, 10.256868],[1193270400000, 10.232308],[1193356800000, 10.280331],[1193443200000, 10.345991],[1193529600000, 10.345991],[1193616000000, 10.345991],[1193702400000, 10.349551],[1193788800000, 10.355159]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });