$(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: [[1109635200000,8.11801],[1109721600000,8.1074],[1109808000000,8.07375],[1109894400000,8.07928],[1109980800000,8.06601],[1110067200000,8.06601],[1110153600000,8.06601],[1110240000000,8.06601],[1110326400000,8.06601],[1110412800000,8.15292],[1110499200000,8.15792],[1110585600000,8.15038],[1110672000000,8.15038],[1110758400000,8.15038],[1110844800000,8.13975],[1110931200000,8.13743],[1111017600000,8.14083],[1111104000000,8.14035],[1111190400000,8.11085],[1111276800000,8.11085],[1111363200000,8.11085],[1111449600000,null],[1111536000000,8.07253],[1111622400000,8.00804],[1111708800000,7.98011],[1111795200000,7.98011],[1111881600000,7.98011],[1111968000000,7.98011],[1112054400000,7.97499],[1112140800000,7.96378],[1112227200000,7.9672]], 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: [[1109635200000, 8.118012],[1109635200000, 8.118012],[1109721600000, 8.107397],[1109808000000, 8.073750],[1109894400000, 8.079277],[1109980800000, 8.066014],[1110067200000, 8.066014],[1110153600000, 8.066014],[1110240000000, 8.066014],[1110326400000, 8.066014],[1110412800000, 8.152923],[1110499200000, 8.157919],[1110585600000, 8.150376],[1110672000000, 8.150376],[1110758400000, 8.150376],[1110844800000, 8.139751],[1110931200000, 8.137429],[1111017600000, 8.140835],[1111104000000, 8.140347],[1111190400000, 8.110846],[1111276800000, 8.110846],[1111363200000, 8.110846],[1111536000000, 8.072529],[1111622400000, 8.008043],[1111708800000, 7.980108],[1111795200000, 7.980108],[1111881600000, 7.980108],[1111968000000, 7.980108],[1112054400000, 7.974987],[1112140800000, 7.963777],[1112227200000, 7.967195]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });