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 #3

Closed
wants to merge 3 commits into from

Conversation

corpglory-dev
Copy link
Member

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

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.

1 participant