apexcharts / apexcharts.js

📊 Interactive JavaScript Charts built on SVG
https://apexcharts.com
MIT License
14.28k stars 1.3k forks source link

Add series isolation on double click #2073

Closed kkmagician closed 3 years ago

kkmagician commented 3 years ago

Is your feature request related to a problem? Please describe.
Some BI solutions and charting libraries allow users to exclude series on legend single clicks, while also giving an option to leave only one selected series when its legend marker is double clicked. It is very handy when you have only many lines, but for a particular task only one is needed. Current solution only dims the other series on legend hover: while it looks nice, the chart may still look cluttered.

Describe the solution you'd like
When you double click a series in the legend, all other series become turned off. After that, single clicks on other series restores them. Examples from another JS library: https://plotly.com/javascript/line-charts/

Describe alternatives you've considered It can be implemented using legend events (for double clicks with setTimeout or similar) + toggleSeries() method. It requires a lot of work on the front end for each chart for each app, I reckon performance may suffer.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.