$(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: [[1162339200000,1.85689],[1162425600000,1.86582],[1162512000000,1.86728],[1162598400000,1.86625],[1162684800000,1.86625],[1162771200000,1.86625],[1162857600000,1.85777],[1162944000000,1.86552],[1163030400000,1.86859],[1163116800000,1.87152],[1163203200000,1.88146],[1163289600000,1.88146],[1163376000000,1.88146],[1163462400000,1.87649],[1163548800000,1.87561],[1163635200000,1.87093],[1163721600000,1.87269],[1163808000000,1.8683],[1163894400000,1.8683],[1163980800000,1.8683],[1164067200000,1.8781],[1164153600000,1.87415],[1164240000000,1.88468],[1164326400000,1.89448],[1164412800000,1.91276],[1164499200000,1.91276],[1164585600000,1.91276],[1164672000000,1.91803],[1164758400000,1.92285],[1164844800000,1.92432]], 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: [[1162339200000, 1.856893],[1162339200000, 1.856893],[1162425600000, 1.865815],[1162512000000, 1.867277],[1162598400000, 1.866253],[1162684800000, 1.866253],[1162771200000, 1.866253],[1162857600000, 1.857771],[1162944000000, 1.865522],[1163030400000, 1.868594],[1163116800000, 1.871519],[1163203200000, 1.881464],[1163289600000, 1.881464],[1163376000000, 1.881464],[1163462400000, 1.876492],[1163548800000, 1.875614],[1163635200000, 1.870934],[1163721600000, 1.872689],[1163808000000, 1.868301],[1163894400000, 1.868301],[1163980800000, 1.868301],[1164067200000, 1.878100],[1164153600000, 1.874151],[1164240000000, 1.884682],[1164326400000, 1.894481],[1164412800000, 1.912764],[1164499200000, 1.912764],[1164585600000, 1.912764],[1164672000000, 1.918029],[1164758400000, 1.922855],[1164844800000, 1.924318]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });