我想在图表底部添加一行“国家:新加坡报告日期:d/MMM/yy 用户:xxxxx”。我应该如何进行?目前,我的代码如下。
<script type="text/javascript">
function renderChart(divId, chartType, chartTitle, chartData, categories) {
var data = jQuery.parseJSON(chartData);
var cat = jQuery.parseJSON(categories);
console.log(cat);
console.log(chartData);
var options = createOption(divId, chartType, chartTitle, cat);
options.series = [{
allowPointSelect : true,
data : data,
showInLegend : true
}];
var chart = new Highcharts.Chart(options);
}
function createOption(divId, chartType, chartTitle, categories) {
var options = {
colors : [ '#058DC7', '#50B432', '#ED561B', '#DDDF00',
'#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4' ],
chart : {
renderTo : divId,
type : chartType
},
title : {
text : chartTitle
},
xAxis : {
categories : categories,
showEmpty: false
},
yAxis: {
showEmpty: false
},
series : []
};
return options;
}