$(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: [[1470009600000,1.25393],[1470096000000,1.25298],[1470182400000,1.25429],[1470268800000,1.2538],[1470355200000,1.25522],[1470441600000,1.2541],[1470528000000,1.2541],[1470614400000,1.2541],[1470700800000,1.25642],[1470787200000,1.25425],[1470873600000,1.25611],[1470960000000,1.25682],[1471046400000,1.26711],[1471132800000,1.26711],[1471219200000,1.26711],[1471305600000,1.27046],[1471392000000,1.26815],[1471478400000,1.26993],[1471564800000,1.27366],[1471651200000,1.27789],[1471737600000,1.27789],[1471824000000,1.27789],[1471910400000,1.27925],[1471996800000,1.28013],[1472083200000,1.28013],[1472169600000,1.28115],[1472256000000,1.28687],[1472342400000,1.28687],[1472428800000,1.28687],[1472515200000,1.28921],[1472601600000,1.29749]], 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: [[1470009600000, 1.253932],[1470009600000, 1.253932],[1470096000000, 1.252984],[1470182400000, 1.254291],[1470268800000, 1.253802],[1470355200000, 1.255221],[1470441600000, 1.254096],[1470528000000, 1.254096],[1470614400000, 1.254096],[1470700800000, 1.256417],[1470787200000, 1.254252],[1470873600000, 1.256110],[1470960000000, 1.256817],[1471046400000, 1.267111],[1471132800000, 1.267111],[1471219200000, 1.267111],[1471305600000, 1.270463],[1471392000000, 1.268151],[1471478400000, 1.269933],[1471564800000, 1.273657],[1471651200000, 1.277894],[1471737600000, 1.277894],[1471824000000, 1.277894],[1471910400000, 1.279250],[1471996800000, 1.280126],[1472083200000, 1.280126],[1472169600000, 1.281149],[1472256000000, 1.286872],[1472342400000, 1.286872],[1472428800000, 1.286872],[1472515200000, 1.289215],[1472601600000, 1.297488]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });