【发布时间】:2016-08-16 15:21:40
【问题描述】:
有没有办法在我的圆环图中包含多个标题?我正在使用 c3.js 创建下面的图表:
我想在图表中再添加一个字段,在“天数”下方,称为分数。
下面是代码:
var chart = c3.generate({
data: {
columns:[
['First Part ', 54],
['Second Part ', ' '+ 24],
['Third Part ', ' ' + 22]
],
type: 'donut',
colors: {
data1: '#ff0000',
data2: '#00ff00',
data3: '#0040ff'
},
},
donut: {
expand: false,
title: 'Days 28'
//want to add 'Score' to the title so it appears on the line below "Days 28"
}
});
谢谢!
【问题讨论】:
标签: javascript d3.js charts c3.js