我要在我的項目中繪製圖表,並且我被用於繪製高圖表。並且我正在爲節目表動態獲得成功。而且我有3個陣列。第一個數組存儲Dates.2nd數組存儲追隨者數,第三個數組存儲字符串。所以我想在工具提示中的第三個數組。現在在工具提示節目中,現在我只想追隨者計數,我也想顯示第三個數組數據。那麼怎麼能做到這一點,那麼請告訴我。這裏下面我已經列出我的代碼與屏幕截圖任何一個知道,然後請幫助我。如何使用高圖在工具提示中顯示多個數組?
這是我的數組=>
var Dates = [];
"11-10-2017"
"12-10-2017"
"13-10-2017"
"14-10-2017"
"15-10-2017"
"16-10-2017"
"17-10-2017"
var FollowersCount = [];
"0"
"0"
"0"
"0"
"50"
"10"
"0"
var Activites = [];
""
""
""
""
"Comment,LIke"
"Like"
"0"
我想表明的只是提示該第三陣列。
這是我的代碼=>
*Highcharts.chart('container', {
xAxis: {
categories: Dates
},
credits: {
enabled: false
},
exporting: {
chartOptions: { // specific options for the exported image
plotOptions: {
series: {
dataLabels: {
enabled: true
}
}
}
},
sourceWidth: 400,
sourceHeight: 300,
scale: 1,
buttons: {
customButton: {
text: 'Next Dates',
onclick: function() {
alert('You pressed the button!');
}
},
anotherButton: {
text: 'Previous Dates',
onclick: function() {
alert('You pressed another button!');
}
}
}
},
plotOptions: {
line: {
dataLabels: {
enabled: true
},
enableMouseTracking: false
}
},
title: {
text: "Followers"
},
series: [{
name: 'Followers',
data: FollowersCount
}
]
});*
這是我的圖表屏幕截圖=>
真棒,我想同樣是這樣,但現在迄今爲止,它是隱藏在刀尖和活性的小藍顏色之前在Dot中怎麼能這樣做你知道嗎? – Edit
@編輯我現在更新了代碼以匹配此評論。如果你想移動藍點,那麼只需將'span'元素移動到格式化程序中的任何位置即可。 – ewolden
謝謝我會處理你的代碼,並告訴你這麼多謝謝你 – Edit