-
I am trying to create a custom bar legend which basically shows for each bar (data Index) a legend item instead of the dataset. Similar to the legend of the Pie/Doughnut Chart. Everything works except the strike-through effect. I struggle to with getDatavisibility to create the strike-throught effect. I am not able to make it read properly. By default is creates a strike-through effect onload. And when clicking on the first bar it will remove strike-through on all. But when I click on the other legendItems it does not read the visibility. Most likely I am missing something obvious. But currently struggle to see it. See Fiddle: https://jsfiddle.net/6b7wpfxr/ See code below
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sorry, I already figured it out. Solution was an if statement to revert the value from false to true. Cannot believe I missed that. -_- . |
Beta Was this translation helpful? Give feedback.
Sorry, I already figured it out. Solution was an if statement to revert the value from false to true. Cannot believe I missed that. -_- .