我想添加一行词语"国家:新加坡报道日期: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;
}