Closed DE-cr closed 1 year ago
Thanks, looks good, one wish that I would have (but not sure if that's easily doable) is that clicking on a parameter in the legend switches between hiding this parameter, showing it again and then showing only this parameter. I had several occasions in the last few days where I wanted to look at just one graph only and had to manually disable all the others and then re-enable them again (or rather reload the page). Yes, when I hover over a parameter, it becomes highlighted, but I can't move the mouse in order to see the actual values. But it's just an idea, if it's more complicated doing it, then no worries...
I'll look into it, but I expect this to take some digging deep into the c3.js sources, as I haven't been able to find an example for that, and it's not covered by the documentation, either. Therefore, I'd prefer to see this PR merged as is for now.
Btw, since the c3 library hasn't been maintained for a couple of years, I had a look billboard.js, which evolved from a c3 fork and is still active. However, as I have seen no noticeable gains for /DG, but slower execution times with billboard (and larger libraries to load), I've refrained from doing a PR for moving from c3 to billboard. This just fyi.
Ok, thanks, yes, if it would need tweaking with the library itself, then forget about it if all will be lost once we have to update the library. I thought there was some kind of configuration option or workaround, but then it's fine as it is. Thanks also for the heads up regarding billboard. It's always good to keep an eye out for successor libraries if the ones we use are no longer actively maintained.
I had several occasions in the last few days where I wanted to look at just one graph only and had to manually disable all the others
After looking into the c3 sources, I'm happy to report that this use case is already supported by /DG as it is: Alt-click on a legend entry enables that line only and disables all others. One more bit of information for the manual, @1coderookie. :)
before:
![grafik](https://user-images.githubusercontent.com/105788188/227518914-6650a867-e654-416b-8fcc-e60be30b870a.png)
after:
![grafik](https://user-images.githubusercontent.com/105788188/227518984-2dff440f-aa0d-445c-80d4-38106500253e.png)