Posted 6 May 2021, 1:34 am EST
I’m attaching a stackblitz link with working example, what I already have: https://stackblitz.com/edit/angular-sbudgg
I would like to create a chart which will be grouped by GROUPS: ‘Tom’, ‘Harry’, ‘John’. Each GROUP has some specific methods which I would like to present on the chart. I would like to show legend, but I would like to group them, to show only 3 methods: method1, method2 and method3. Once I toggle off the method1, I would like to hide all method1 from the chart. As you can see in the example, I have multiple repeated methods in legend, but I would like simply to group them, to show only 3 methods. So once I click on legend toggle method1 I would like to toggle it for all: ‘Tom’, ‘Harry’ and ‘John’.
Data are presenting well, but I’m not sure how can I group data to legend show only 3 of my methods and toggle them on and off. Any ideas? Thanks!