$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1196467200000,5.96152],[1196553600000,5.96152],[1196640000000,5.96152],[1196726400000,5.96222],[1196812800000,5.96292],[1196899200000,5.96433],[1196985600000,5.96574],[1197072000000,5.96574],[1197158400000,5.96574],[1197244800000,5.96574],[1197331200000,5.96645],[1197417600000,5.96715],[1197504000000,5.96715],[1197590400000,5.96786],[1197676800000,5.96856],[1197763200000,5.96856],[1197849600000,5.96856],[1197936000000,5.96927],[1198022400000,5.96997],[1198108800000,5.97068],[1198195200000,5.97068],[1198281600000,5.97068],[1198368000000,5.97068],[1198454400000,5.97068],[1198540800000,5.97138],[1198627200000,5.97209],[1198713600000,5.9728],[1198800000000,5.9728],[1198886400000,5.9735]], 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: [[1196467200000, 5.961516],[1196467200000, 5.961516],[1196553600000, 5.961516],[1196640000000, 5.961516],[1196726400000, 5.962220],[1196812800000, 5.962924],[1196899200000, 5.964332],[1196985600000, 5.965741],[1197072000000, 5.965741],[1197158400000, 5.965741],[1197244800000, 5.965741],[1197331200000, 5.966446],[1197417600000, 5.967151],[1197504000000, 5.967151],[1197590400000, 5.967856],[1197676800000, 5.968562],[1197763200000, 5.968562],[1197849600000, 5.968562],[1197936000000, 5.969267],[1198022400000, 5.969973],[1198108800000, 5.970679],[1198195200000, 5.970679],[1198281600000, 5.970679],[1198368000000, 5.970679],[1198454400000, 5.970679],[1198540800000, 5.971385],[1198627200000, 5.972091],[1198713600000, 5.972797],[1198800000000, 5.972797],[1198886400000, 5.973504]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });