答案 0 :(得分:1)
您似乎在谈论 line.step.type 选项:
var chart = c3.generate({
data: {
columns: [
['data1', 300, 350, 300, 0, 0, 100]
],
types: {
data1: 'step'
}
},
// that's it:
line: {
step: {
type: 'step-after'
}
}
});