How to hide legend by default for custom chart types only. #11087
-
I have created a custom chart type. This is an extension of Doughnut chart. However, I want to set the legend on display false within the current structure. Code below works.
But if I want to add more like the options/legend: This does not work
Is there a way to set this by default without affecting any other chart types. // I know the code below works but this would affect all chart types instead of the the specific chart type 'circularGauge'. So I want to avoid that. Hope there is someone can shed a light on this topic. As I struggle with the docs about this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@Udemology I think you should add circularChart.overrides = {
plugins: { legend: false }
} |
Beta Was this translation helpful? Give feedback.
@Udemology I think you should add
overrides
property to your controller for that: