$(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: [[1120262400000,7.36123],[1120348800000,7.36123],[1120435200000,7.36123],[1120521600000,7.36123],[1120608000000,7.2996],[1120694400000,7.30201],[1120780800000,7.31884],[1120867200000,7.28918],[1120953600000,7.28918],[1121040000000,7.28918],[1121126400000,7.31593],[1121212800000,7.37191],[1121299200000,7.37101],[1121385600000,7.33727],[1121472000000,7.34397],[1121558400000,7.34397],[1121644800000,7.34397],[1121731200000,7.32604],[1121817600000,7.30164],[1121904000000,7.31574],[1121990400000,7.33843],[1122076800000,7.35044],[1122163200000,7.35044],[1122249600000,7.35044],[1122336000000,7.32245],[1122422400000,7.30781],[1122508800000,7.29899],[1122595200000,7.32303],[1122681600000,7.33187],[1122768000000,7.33187]], 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: [[1120262400000, 7.361229],[1120262400000, 7.361229],[1120348800000, 7.361229],[1120435200000, 7.361229],[1120521600000, 7.361229],[1120608000000, 7.299597],[1120694400000, 7.302011],[1120780800000, 7.318842],[1120867200000, 7.289176],[1120953600000, 7.289176],[1121040000000, 7.289176],[1121126400000, 7.315929],[1121212800000, 7.371910],[1121299200000, 7.371007],[1121385600000, 7.337274],[1121472000000, 7.343968],[1121558400000, 7.343968],[1121644800000, 7.343968],[1121731200000, 7.326044],[1121817600000, 7.301642],[1121904000000, 7.315745],[1121990400000, 7.338431],[1122076800000, 7.350437],[1122163200000, 7.350437],[1122249600000, 7.350437],[1122336000000, 7.322449],[1122422400000, 7.307815],[1122508800000, 7.298985],[1122595200000, 7.323033],[1122681600000, 7.331868],[1122768000000, 7.331868]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });