asantibanez / livewire-charts

Neat Livewire Charts for your Laravel projects
MIT License
804 stars 120 forks source link

Make Legend clickable to show and hide elements #119

Open dominik-eller opened 7 months ago

dominik-eller commented 7 months ago

Summary

It would be a great feature if the legend elements were clickable to show / hide elements of the chart.

Two elements hidden: Bildschirmfoto 2024-02-09 um 13 22 50

One element hidden: Bildschirmfoto 2024-02-09 um 13 23 01

Proposal

I don't know the implementation of your project, so I am not in the position to make a concrete proposal.

Additional Notes

I know that feature from chartisan/chartjs and it was great. I was used to use https://github.com/ConsoleTVs/Charts before it was deprecated. The legend entries gets greyed out on click and the cart is updating and only show columns of active legend elements. I guess the feature could work for all chart types, not only column chart.

dominik-eller commented 7 months ago

Sorry, I just saw it is working already. I was sure yesterday it did not. This could be closed.

dominik-eller commented 7 months ago

It is only working on multiple Column Charts. Not on default ones. Please add that feature