$(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: [[1498867200000,1.43284],[1498953600000,1.43284],[1499040000000,1.43284],[1499126400000,1.43244],[1499212800000,1.43399],[1499299200000,1.44016],[1499385600000,1.43529],[1499472000000,1.43401],[1499558400000,1.43401],[1499644800000,1.43401],[1499731200000,1.43114],[1499817600000,1.43164],[1499904000000,1.42712],[1499990400000,1.43039],[1500076800000,1.43295],[1500163200000,1.43295],[1500249600000,1.43295],[1500336000000,1.43147],[1500422400000,1.42904],[1500508800000,1.42868],[1500595200000,1.43008],[1500681600000,1.42861],[1500768000000,1.42861],[1500854400000,1.42861],[1500940800000,1.42466],[1501027200000,1.42529],[1501113600000,1.42748],[1501200000000,1.42914],[1501286400000,1.43204],[1501372800000,1.43204],[1501459200000,1.43204]], 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: [[1498867200000, 1.432839],[1498867200000, 1.432839],[1498953600000, 1.432839],[1499040000000, 1.432839],[1499126400000, 1.432440],[1499212800000, 1.433985],[1499299200000, 1.440160],[1499385600000, 1.435292],[1499472000000, 1.434009],[1499558400000, 1.434009],[1499644800000, 1.434009],[1499731200000, 1.431144],[1499817600000, 1.431643],[1499904000000, 1.427121],[1499990400000, 1.430393],[1500076800000, 1.432951],[1500163200000, 1.432951],[1500249600000, 1.432951],[1500336000000, 1.431468],[1500422400000, 1.429045],[1500508800000, 1.428681],[1500595200000, 1.430079],[1500681600000, 1.428612],[1500768000000, 1.428612],[1500854400000, 1.428612],[1500940800000, 1.424657],[1501027200000, 1.425286],[1501113600000, 1.427477],[1501200000000, 1.429139],[1501286400000, 1.432038],[1501372800000, 1.432038],[1501459200000, 1.432038]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });