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

Histogram: Fix panel hide when clicking on legend #53651

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

mdvictor
Copy link
Contributor

What this PR does / why we need it:
Small fix that allow histogram panel to hide/show series when series clicked from legend.

Which issue(s) this PR fixes:

Fixes #52671

@@ -199,7 +199,7 @@ const prepConfig = (frame: DataFrame, theme: GrafanaTheme2) => {
colorMode,
pathBuilder,
//pointsBuilder: config.drawPoints,
show: !customConfig.hideFrom?.vis,
Copy link
Member

Choose a reason for hiding this comment

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

No way! Where is typescript when you need it the most?

Copy link
Member

@zoltanbedi zoltanbedi left a comment

Choose a reason for hiding this comment

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

We need to make sure to type this properly in the future. Also to include it in the schema generation. We do include this in the schema generation HideableFieldConfig

@mdvictor mdvictor self-assigned this Aug 12, 2022
@mdvictor mdvictor added this to the 9.1.0 milestone Aug 12, 2022
@mdvictor mdvictor added area/panel/histogram no-changelog Skip including change in changelog/release notes backport v9.0.x backport v9.1.x Bot will automatically open backport PR labels Aug 12, 2022
@mdvictor
Copy link
Contributor Author

We need to make sure to type this properly in the future. Also to include it in the schema generation.

You're right. I'll look into it and try to do it in this PR

@grafanabot grafanabot removed this from the 9.1.0 milestone Aug 16, 2022
@grafanabot
Copy link
Contributor

This pull request was removed from the 9.1.0 milestone because 9.1.0 is currently being released.

@mdvictor mdvictor added this to the 9.2.0 milestone Aug 16, 2022
@mdvictor mdvictor merged commit 2d391c9 into main Aug 17, 2022
@mdvictor mdvictor deleted the bugfix/histogram-panel-hide-legend branch August 17, 2022 10:40
grafanabot pushed a commit that referenced this pull request Aug 17, 2022
grafanabot pushed a commit that referenced this pull request Aug 17, 2022
mdvictor added a commit that referenced this pull request Aug 17, 2022
(cherry picked from commit 2d391c9)

Co-authored-by: Victor Marin <36818606+mdvictor@users.noreply.github.com>
mdvictor added a commit that referenced this pull request Aug 17, 2022
(cherry picked from commit 2d391c9)

Co-authored-by: Victor Marin <36818606+mdvictor@users.noreply.github.com>
@daniellee daniellee added add to changelog and removed no-changelog Skip including change in changelog/release notes labels Aug 23, 2022
@dsotirakis dsotirakis modified the milestones: 9.2.0, 9.2.0-beta1 Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Histogram Panel Hide in area wont work
5 participants