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