-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
fix duplicate chart title #11594
fix duplicate chart title #11594
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - one comment/suggestion
@@ -79,7 +79,7 @@ export function VislibLibLayoutLayoutProvider(Private) { | |||
const width = el.width(); | |||
const height = el.height(); | |||
axis.destroy(); | |||
el.find('.chart-title svg').remove(); | |||
$(this.el).find('.chart-title svg').remove(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having a this.el
and a el
referring to different elements makes this code-block slightly hard to understand. Perhaps renaming el
to axisEl
or something more descriptive would make this easier to understand?
27c4d19
to
9e23d4b
Compare
* fix duplicate chart title * updating el to axisWrapperElement
* fix duplicate chart title * updating el to axisWrapperElement
* fix duplicate chart title * updating el to axisWrapperElement
Resolves #11512
Summary: fixes an error where point series would render duplicate chart titles when splitting chart by rows
closes