C. *_*oot 5 javascript chart.js
我没有在任何网站上找到任何解决这个问题的问题,也没有找到任何关于如何回答它的文档......
如何使使用最新版本 Chart.js 库制作的图表中的 y 轴接受多行字符串作为其 labelString?我试过了
"Percent of users <br> that can come today"
Run Code Online (Sandbox Code Playgroud)
也
"Percent of users \n that can come today"
Run Code Online (Sandbox Code Playgroud)
和
"Percent of users that can come today".
Run Code Online (Sandbox Code Playgroud)
这是我的代码,如有必要,我可以添加更多代码:
yAxes: [{
ticks: {
beginAtZero: true,
max: 100,
stepSize: 25,
},
scaleLabel: {
display: true,
fontSize: 14,
labelString: "Percent of users \n that can come today",
}
}]
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3024 次 |
| 最近记录: |