1
我創建的數據點折線圖未選行爲,每一個數據點應該根據數據的不同的風格,我實現這一目標使用,你作爲提供給我們 選擇API在這個例子中所示enter link description here 的一點是,用戶可以選擇和取消選擇其他的點,我想避免這種行爲 是,即使更多鈔票?避免在c3js圖
var chart = c3.generate({
data: {
columns: [
['data1', 30, 200, 100, 400, 150, 250],
['data2', 50, 20, 10, 40, 15, 25]
],
selection: {
enabled: true
}
},
point: {
focus: {
expand: {
enabled: false
}
}
}
});
chart.select(['data1'], [1, 3, 5]);