swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.3k stars 1.15k forks source link

Pie Chart inactive class not set #1035

Open frank-bader opened 5 years ago

frank-bader commented 5 years ago

I'm submitting a ... (check one with "x")

Current behavior on hover Pie Chart is not setting class.inactive on other slices.

Expected behavior class.inactive should be set on slices that are not active.

Reproduction of the problem hover over a slice class.active is set, other slices don't have class.inactive set.

What is the motivation / use case for changing the behavior? Fix pie chart slice colors so it's 100% opacity on hover and 20% opacity for inactive slices.

This behavior is implemented in LineChartComponent.

frank-bader commented 5 years ago

PR submitted: https://github.com/swimlane/ngx-charts/pull/1069