$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1417392000000,2.51107],[1417478400000,2.52589],[1417564800000,2.53165],[1417651200000,2.53563],[1417737600000,2.53488],[1417824000000,2.55081],[1417910400000,2.55081],[1417996800000,2.55081],[1418083200000,2.57972],[1418169600000,2.56649],[1418256000000,2.60121],[1418342400000,2.61047],[1418428800000,2.62482],[1418515200000,2.62482],[1418601600000,2.62482],[1418688000000,2.63839],[1418774400000,2.63524],[1418860800000,2.65862],[1418947200000,null],[1419033600000,2.6041],[1419120000000,2.6041],[1419206400000,2.6041],[1419292800000,2.61693],[1419379200000,2.58057],[1419465600000,2.58846],[1419552000000,2.59025],[1419638400000,2.58992],[1419724800000,2.58992],[1419811200000,2.58992],[1419897600000,2.58493],[1419984000000,2.58493]], 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: [[1417392000000, 2.511075],[1417392000000, 2.511075],[1417478400000, 2.525893],[1417564800000, 2.531649],[1417651200000, 2.535631],[1417737600000, 2.534882],[1417824000000, 2.550809],[1417910400000, 2.550809],[1417996800000, 2.550809],[1418083200000, 2.579723],[1418169600000, 2.566487],[1418256000000, 2.601209],[1418342400000, 2.610471],[1418428800000, 2.624821],[1418515200000, 2.624821],[1418601600000, 2.624821],[1418688000000, 2.638386],[1418774400000, 2.635240],[1418860800000, 2.658623],[1419033600000, 2.604099],[1419120000000, 2.604099],[1419206400000, 2.604099],[1419292800000, 2.616931],[1419379200000, 2.580569],[1419465600000, 2.588458],[1419552000000, 2.590250],[1419638400000, 2.589921],[1419724800000, 2.589921],[1419811200000, 2.589921],[1419897600000, 2.584929],[1419984000000, 2.584929]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });