$(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: [[1172707200000,1.93222],[1172793600000,1.93426],[1172880000000,1.92519],[1172966400000,1.92519],[1173052800000,1.92519],[1173139200000,1.91349],[1173225600000,1.91598],[1173312000000,1.9211],[1173398400000,1.9211],[1173484800000,1.9211],[1173571200000,1.9211],[1173657600000,1.9211],[1173744000000,1.92417],[1173830400000,1.93324],[1173916800000,1.92812],[1174003200000,1.93441],[1174089600000,1.94889],[1174176000000,1.94889],[1174262400000,1.94889],[1174348800000,1.94567],[1174435200000,1.94465],[1174521600000,1.94421],[1174608000000,1.95269],[1174694400000,1.94918],[1174780800000,1.94918],[1174867200000,1.94918],[1174953600000,1.94011],[1175040000000,1.95211],[1175126400000,1.95225],[1175212800000,1.95284],[1175299200000,1.94787]], 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: [[1172707200000, 1.932216],[1172707200000, 1.932216],[1172793600000, 1.934263],[1172880000000, 1.925195],[1172966400000, 1.925195],[1173052800000, 1.925195],[1173139200000, 1.913495],[1173225600000, 1.915981],[1173312000000, 1.921100],[1173398400000, 1.921100],[1173484800000, 1.921100],[1173571200000, 1.921100],[1173657600000, 1.921100],[1173744000000, 1.924172],[1173830400000, 1.933240],[1173916800000, 1.928121],[1174003200000, 1.934410],[1174089600000, 1.948889],[1174176000000, 1.948889],[1174262400000, 1.948889],[1174348800000, 1.945672],[1174435200000, 1.944648],[1174521600000, 1.944209],[1174608000000, 1.952692],[1174694400000, 1.949182],[1174780800000, 1.949182],[1174867200000, 1.949182],[1174953600000, 1.940114],[1175040000000, 1.952107],[1175126400000, 1.952253],[1175212800000, 1.952838],[1175299200000, 1.947866]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });