0
我已經制作了一個條形圖表,它也有一個子圖。我想將子圖的類型更改爲行。如圖所示,主圖應該是條形圖,但是這個子圖應該是折線圖。有沒有辦法改變c3.js中子圖的類型
這是我用來生成圖表的一段代碼。但是子圖的類型不起作用。
var chart=c3.generate({
bindto:bindTo(),
data:{
x:'x',
/* value:['Percent DEP Enabled'],*/
columns:data(),
type: 'bar'
},
subchart: {
show: true,
size: {
height: 25
},
},
axis: {
x: {
type: 'timeseries',
tick: {
format: '%m-%d-%y',
rotate: -45,
},
height: 75
},/* y: {
tick: {
values: function(){
jQuery.forEach(function(){
})}
count: 8,
format:d3.format(".2s"),
},
},*/
subchart: {
show: true,
type: 'line',
}
}
});