Skip to content

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