Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(react-components): hide/show properties from legend #2208

Merged
merged 1 commit into from
Dec 29, 2023
Merged

Conversation

ssjagad
Copy link
Contributor

@ssjagad ssjagad commented Oct 31, 2023

Overview

Allow users to toggle the visibility of a property from within the legend.

Verifying Changes

Screen.Recording.2023-12-13.at.2.08.33.PM.mov

Legal

This project is available under the Apache 2.0 License.

dpportet

This comment was marked as resolved.

@ssjagad ssjagad force-pushed the hide-show branch 4 times, most recently from 3e70386 to e5ea40b Compare November 1, 2023 19:20
Copy link
Contributor

@mnischay mnischay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the icons should be in their own .svg files, please take a look at the other examples. other comments are just minor nits

@ssjagad ssjagad force-pushed the hide-show branch 4 times, most recently from a29b5fe to 67a1484 Compare November 2, 2023 20:58
@@ -44,5 +45,5 @@ export const useHandleSeries = ({
};

delayedRender({ updateFunction: update });
}, [chartRef, series.length, setGraphic]);
}, [chartRef, seriesString, setGraphic]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just tested locally and this change causes TCs to rerender a ton of times if any part of the series changes (color, line style, symbol, y axis)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we keep series.length and also do number of series with an opacity of 0?

@ssjagad ssjagad force-pushed the hide-show branch 2 times, most recently from 3fce554 to bd124c6 Compare December 27, 2023 22:54
@ssjagad ssjagad merged commit 6d526a7 into rc Dec 29, 2023
9 checks passed
@ssjagad ssjagad deleted the hide-show branch December 29, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants