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

Axes labels do not react to template variables changes #94 #96

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

corpglory-dev
Copy link

@corpglory-dev corpglory-dev commented Mar 24, 2020

Fixes #94

This PR fixes the problem that axes labels do not react to template variables changes.

When you change a template variable, only metrics are re-rendered. Axes are re-rendered only when you change panel config.

Changes:

  • onRender(): re-render the whole plot (not only metrics) if layout is changed (axes labels are part of layout).

Other changes:

  • move duplicated code from onConfigChanged() and onRender() to new createOrUpdatePlot() method

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.

Axes labels do not react to template variables changes
1 participant