我想在海圖上添加一些文字或圖片,但它必須出現在海圖的圖例上方。如何將文字添加到海圖的底部,但在圖例上方?
我的代碼:
$(function() {
Highcharts.wrap(Highcharts.seriesTypes.bubble.prototype, 'drawPoints', function (proceed) {
proceed.apply(this);
for (i in this.data) {
if(this.data[i].options.x > 90)
this.data[i].graphic.dashstyleSetter(this.options.dashStyle || 'solid');
}
});
$('#container').highcharts({
chart: {
type: 'bubble',
zoomType: 'xy'
},
title: {
text: 'Highcharts Bubbles'
},
series: [{
dashStyle: 'dash',
data: [
[97, 36, 79],
[94, 74, 60],
[68, 76, 58],
[64, 87, 56],
[68, 27, 73],
[74, 99, 42],
[7, 93, 87],
[51, 69, 40],
[38, 23, 33],
[57, 86, 31]
],
marker: {
lineColor: 'red'
}
}]
});
});
這裏是我的jsfiddle:http://jsfiddle.net/qebxk6ty/6/
我要添加靜態圖像或文字圖表下方,但傳說上述指示什麼虛泡的意思。
這樣的回答顯示瞭如何將它添加圖例如下: How do you add text to the bottom center of legend and bottom center of chart under legend?
我在一個不知如何對其進行修改。
在此先感謝。
我不想要添加x軸標題。我需要在圖表下方(x軸標題下方)和圖例上方包含一個靜態文本/圖像。 – Penman
@Penman好吧!順便說一句,你的問題標題是誤導 – Sajeetharan
@Penman檢查更新的答案 – Sajeetharan