[英]Break Line for Label on ChartJs
I'm having a problem with the Chart Js and need to insert two lines on the chart, preferably with different styles, but I am not able to do that.我在使用 Chart Js 时遇到问题,需要在图表上插入两条线,最好使用不同的样式,但我无法做到这一点。
Follow the link to an example of the problem and try what I did: https://jsfiddle.net/caioc/t6223vnu/按照问题示例的链接并尝试我所做的: https ://jsfiddle.net/caioc/t6223vnu/
The label parameters I put the following code:标签参数我放如下代码:
labels: ["teste", "teste \n LINE"]
labels: [['(A)', 'Waking'], '(B)', '(C)', '(D)'],标签:[['(A)','醒来'],'(B)','(C)','(D)'],
This will display as A Walking in two lines.这将显示为 A 走两行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.