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

Show auxiliary plot colors in line vis tooltip #1049

Merged
merged 1 commit into from
Apr 6, 2022
Merged

Conversation

axelboc
Copy link
Contributor

@axelboc axelboc commented Apr 1, 2022

Fix #970

The tooltip remains unchanged when no auxiliaries are passed (i.e. the color of the main plot is not shown unless there are auxiliary plots).

image

The tooltip code of the line vis is starting to take quite a bit of space, but I wasn't sure if it was worth extracting the whole thing into a separate component, since we need access to so many props/variables from LineVis. Perhaps there's a way to abstract things but I'm not seeing it yet, especially since everything in there is so specific to the line vis at the moment.

@axelboc axelboc requested a review from loichuder April 1, 2022 09:58
Copy link
Member

@loichuder loichuder left a comment

Choose a reason for hiding this comment

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

Great, a few nitpicks as always 😺

I wouldn't worry too much about abstracting things right now. The work on #1029 will bring new constraints and it will be easier to work on it without unfit abstractions

packages/lib/src/vis/line/LineVis.tsx Outdated Show resolved Hide resolved
packages/lib/src/vis/line/LineVis.tsx Outdated Show resolved Hide resolved
packages/lib/src/vis/line/LineVis.tsx Outdated Show resolved Hide resolved
packages/lib/src/vis/line/LineVis.tsx Outdated Show resolved Hide resolved
packages/lib/src/vis/line/LineVis.module.css Show resolved Hide resolved
@axelboc axelboc merged commit 269864f into main Apr 6, 2022
@axelboc axelboc deleted the tooltip-colours branch April 6, 2022 14:13
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.

[NX Spectrum] Legend and tooltip values for auxiliary signals
2 participants