highcharts / highcharts

Highcharts JS, the JavaScript charting framework
https://www.highcharts.com
Other
12.03k stars 3.63k forks source link

I want a table that can interact with a pie chart. How do I do that? #14409

Closed Ruifeng-Wu closed 4 years ago

Ruifeng-Wu commented 4 years ago

Description of the feature

I want a table that can interact with a pie chart. And tables and pie charts can interact, just like legends.

Library related to the feature

Highcharts

wwwww

Of course, I also hope you can tell me if there is a ready-made solution.

Proof of Concept/Live example for the feature


You can vote for this feature by adding a thumbs-up reaction to this post.

pawelfus commented 4 years ago

Hi @Ruifeng-Wu

Thank for using Highcharts!

Right now, you can use our API to achieve that, for example use point.setState('hover') when hovering a row (?) in your table. Use point.setVisible(true|false) when you want to hide a slice etc.

Simple demo: https://jsfiddle.net/BlackLabel/uzpdm3yr/

Ruifeng-Wu commented 4 years ago

Hi @pawelfus Thank you for your reply. I'm using highcharts-react-official now. I wonder how I can get chart.series. What should I do?

pawelfus commented 4 years ago

See docs: https://github.com/highcharts/highcharts-react#how-to-get-a-chart-instance

Ruifeng-Wu commented 4 years ago

Thanks, You solved my problem.