$(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: [[1262736000000,1.54968],[1262822400000,1.53997],[1262908800000,1.53997],[1262995200000,1.53997],[1263081600000,1.53997],[1263168000000,1.53997],[1263254400000,1.56007],[1263340800000,1.55668],[1263427200000,1.56659],[1263513600000,1.55804],[1263600000000,1.54541],[1263686400000,1.54541],[1263772800000,1.54541],[1263859200000,1.54491],[1263945600000,1.536],[1264032000000,1.52016],[1264118400000,1.51362],[1264204800000,1.52034],[1264291200000,1.52034],[1264377600000,1.52034],[1264464000000,1.52211],[1264550400000,1.51441],[1264636800000,1.51256],[1264723200000,1.50454],[1264809600000,1.50066],[1264896000000,1.50066]], 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: [[1262736000000, 1.549679],[1262736000000, 1.549679],[1262822400000, 1.539973],[1262908800000, 1.539973],[1262995200000, 1.539973],[1263081600000, 1.539973],[1263168000000, 1.539973],[1263254400000, 1.560065],[1263340800000, 1.556681],[1263427200000, 1.566592],[1263513600000, 1.558039],[1263600000000, 1.545408],[1263686400000, 1.545408],[1263772800000, 1.545408],[1263859200000, 1.544912],[1263945600000, 1.535998],[1264032000000, 1.520165],[1264118400000, 1.513619],[1264204800000, 1.520344],[1264291200000, 1.520344],[1264377600000, 1.520344],[1264464000000, 1.522112],[1264550400000, 1.514407],[1264636800000, 1.512556],[1264723200000, 1.504544],[1264809600000, 1.500665],[1264896000000, 1.500665]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });