$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1196467200000,8.0304],[1196553600000,8.0304],[1196640000000,8.0304],[1196726400000,8.00726],[1196812800000,8.03072],[1196899200000,8.01202],[1196985600000,7.96531],[1197072000000,7.98425],[1197158400000,7.98425],[1197244800000,7.98425],[1197331200000,7.9944],[1197417600000,7.9941],[1197504000000,8.00022],[1197590400000,7.99655],[1197676800000,7.94055],[1197763200000,7.94055],[1197849600000,7.94055],[1197936000000,7.90761],[1198022400000,7.91013],[1198108800000,7.90655],[1198195200000,7.88299],[1198281600000,7.89222],[1198368000000,7.89222],[1198454400000,7.89222],[1198540800000,7.89222],[1198627200000,7.89222],[1198713600000,7.89222],[1198800000000,7.91473],[1198886400000,7.97132]], 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, 8.030404],[1196467200000, 8.030404],[1196553600000, 8.030404],[1196640000000, 8.030404],[1196726400000, 8.007256],[1196812800000, 8.030723],[1196899200000, 8.012020],[1196985600000, 7.965312],[1197072000000, 7.984253],[1197158400000, 7.984253],[1197244800000, 7.984253],[1197331200000, 7.994402],[1197417600000, 7.994099],[1197504000000, 8.000215],[1197590400000, 7.996554],[1197676800000, 7.940551],[1197763200000, 7.940551],[1197849600000, 7.940551],[1197936000000, 7.907614],[1198022400000, 7.910128],[1198108800000, 7.906549],[1198195200000, 7.882988],[1198281600000, 7.892216],[1198368000000, 7.892216],[1198454400000, 7.892216],[1198540800000, 7.892216],[1198627200000, 7.892216],[1198713600000, 7.892216],[1198800000000, 7.914728],[1198886400000, 7.971322]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });