Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法从 chart.js 的图例中对标签进行分组。观察我目前的情况:
我想对湿度标签、内部温度和外部温度进行分组。我可以通过单击显示/隐藏它们。例如,如果我单击单个湿度标签,则会显示内部和外部湿度。我也熟悉该功能generateLegend(),但文档并没有帮助我找到正确的解决方案。
generateLegend()