$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1162339200000,0.381789],[1162425600000,0.38189],[1162512000000,0.381957],[1162598400000,0.381988],[1162684800000,0.381988],[1162771200000,0.381988],[1162857600000,0.382029],[1162944000000,0.382107],[1163030400000,0.382144],[1163116800000,0.382211],[1163203200000,0.382324],[1163289600000,0.382324],[1163376000000,0.382324],[1163462400000,0.382422],[1163548800000,0.382524],[1163635200000,0.382645],[1163721600000,0.382619],[1163808000000,0.382593],[1163894400000,0.382593],[1163980800000,0.382593],[1164067200000,0.3825],[1164153600000,0.382503],[1164240000000,0.382567],[1164326400000,0.382596],[1164412800000,0.382683],[1164499200000,0.382683],[1164585600000,0.382683],[1164672000000,0.382747],[1164758400000,0.382845],[1164844800000,0.382927]], 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, 0.381789],[1162339200000, 0.381789],[1162425600000, 0.381890],[1162512000000, 0.381957],[1162598400000, 0.381988],[1162684800000, 0.381988],[1162771200000, 0.381988],[1162857600000, 0.382029],[1162944000000, 0.382107],[1163030400000, 0.382144],[1163116800000, 0.382211],[1163203200000, 0.382324],[1163289600000, 0.382324],[1163376000000, 0.382324],[1163462400000, 0.382422],[1163548800000, 0.382524],[1163635200000, 0.382645],[1163721600000, 0.382619],[1163808000000, 0.382593],[1163894400000, 0.382593],[1163980800000, 0.382593],[1164067200000, 0.382500],[1164153600000, 0.382503],[1164240000000, 0.382567],[1164326400000, 0.382596],[1164412800000, 0.382683],[1164499200000, 0.382683],[1164585600000, 0.382683],[1164672000000, 0.382747],[1164758400000, 0.382845],[1164844800000, 0.382927]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });