0
当Charts.js(版本:2.1.3)使我的低数据极地区域图表值规模绘制分数值: Example polar area chartCharts.js极地区域扩展
的部分没有意义的我的数据(学生数字)的上下文。我宁愿显示一个整数的比例,或者没有比例。我试图改变图表选项,查看和测试各种示例,在本网站和其他地方搜索答案,但尚未成功。有什么建议吗?我的代码
例子:
var ML_Chart_obj = new Chart(ctx,
{
type: "polarArea",
data: {
datasets: [{
data: [0,1,0],
backgroundColor: [
"rgba(060,186,084,0.6)"
,"rgba(244,194,013,0.6)"
,"rgba(219,050,054,0.6)"
],
label: ""
}],
labels: [
"Active, on target"
,"Unspecified start or end date"
,"Active, at risk"
]
},
options: {
scales: {
xAxes: [{
display:false
}]
},
legend: {
display: false
}
}
});