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

Canvas: Add icon value mapping #59013

Merged
merged 6 commits into from Nov 22, 2022
Merged

Canvas: Add icon value mapping #59013

merged 6 commits into from Nov 22, 2022

Conversation

nmarrs
Copy link
Contributor

@nmarrs nmarrs commented Nov 21, 2022

Received some feedback from user that #58492 did not resolve their use case. Thinking on this more it seems that a user's datasource would not return icon paths. Instead the most likely case is that a user would use value mappings to tie a given numeric value to a given icon.

We added support for icon value mapping a while ago in #44503 but limited it to only the alpha icon panel. This PR includes icon value mapping support into the canvas panel.

See community comment here

Also confirmed user can use both color and icon value mapping together

canvas.icon.value.mapping.demo.mov

image example

Which issue(s) does this PR fix?:

Fixes #59011

@nmarrs nmarrs added add to changelog area/panel/canvas Issues related to canvas panel no-backport Skip backport of PR add to what's new labels Nov 21, 2022
@nmarrs nmarrs added this to the 9.3.0 milestone Nov 21, 2022
@nmarrs nmarrs self-assigned this Nov 21, 2022
@grafanabot
Copy link
Contributor

@grafanabot
Copy link
Contributor

@nmarrs nmarrs changed the title [WIP] Canvas: Add icon value mapping Canvas: Add icon value mapping Nov 22, 2022
@nmarrs nmarrs marked this pull request as ready for review November 22, 2022 22:09
@nmarrs nmarrs requested a review from a team November 22, 2022 22:09
@grafanabot
Copy link
Contributor

Copy link
Contributor

@drew08t drew08t left a comment

Choose a reason for hiding this comment

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

LGTM, tested locally and behaves as expected! Great job!

@nmarrs nmarrs merged commit e157ef1 into main Nov 22, 2022
@nmarrs nmarrs deleted the canvas-add-icon-value-mapping branch November 22, 2022 22:39
@nmarrs nmarrs added backport v9.3.x and removed no-backport Skip backport of PR labels Nov 23, 2022
grafanabot pushed a commit that referenced this pull request Nov 23, 2022
nmarrs added a commit that referenced this pull request Nov 23, 2022
Canvas: Add icon value mapping (#59013)

(cherry picked from commit e157ef1)

Co-authored-by: Nathan Marrs <nathanielmarrs@gmail.com>
GuYounes pushed a commit to paul-wurth/BIXpert that referenced this pull request Feb 8, 2023
Canvas: Add icon value mapping (grafana#59013)

(cherry picked from commit e157ef1)

Co-authored-by: Nathan Marrs <nathanielmarrs@gmail.com>
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.

Canvas: Add icon value mapping
3 participants