Toggle visibility of line series
Created by: unclejustin
Closes: https://github.com/sourcegraph/sourcegraph/issues/29958
https://user-images.githubusercontent.com/1855233/169619393-cf6303cd-b4e9-48ef-99e1-0731cd7c44b0.mov
Test plan
- Existing tests should pass
- Existing screenshots should render the same
- Open any line chart with multiple series. Easiest would be to open storybook and go to the "Smart Insights View Grid Example"
- Click a legend item
- Only that series should be rendered.
- Other legend items should be faded
- Hover over another legend item, and its respective series should render slightly faded
App preview:
Check out the client app preview documentation to learn more.