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',
}
}
});