[英]How to change the sequence of the legend in chartJs PIE Chart?
Have any way to do that?有什么办法吗?
Here is the Config part in PIE chart...........这是PIE图中的Config部分............
{
dataRequest: [],// data has here
config: [{
legend: {display: true, position: 'right'},
responsive: false,
plugins: { datalabels: { display: false } },
tooltips: {
enabled: false
}
}
This one can help - https://www.chartjs.org/docs/latest/configuration/legend.html?h=reverse这个可以提供帮助 - https://www.chartjs.org/docs/latest/configuration/legend.html?h=reverse
"reverse" key does the job “反向”键完成工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.