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

fix duplicate chart title #11594

Merged
merged 2 commits into from
May 10, 2017
Merged

Conversation

ppisljar
Copy link
Member

@ppisljar ppisljar commented May 4, 2017

Resolves #11512

Summary: fixes an error where point series would render duplicate chart titles when splitting chart by rows
closes

@ppisljar ppisljar added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) review v5.4.1 v6.0.0 labels May 4, 2017
@ppisljar ppisljar requested review from kobelb and thomasneirynck May 4, 2017 10:06
Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

thanks!

Copy link
Contributor

@kobelb kobelb left a 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();
Copy link
Contributor

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?

@ppisljar ppisljar force-pushed the fix/duplicateChartTitle branch from 27c4d19 to 9e23d4b Compare May 10, 2017 14:37
@ppisljar ppisljar merged commit 12f7353 into elastic:master May 10, 2017
ppisljar added a commit to ppisljar/kibana that referenced this pull request May 10, 2017
* fix duplicate chart title

* updating el to axisWrapperElement
ppisljar added a commit to ppisljar/kibana that referenced this pull request May 10, 2017
* fix duplicate chart title

* updating el to axisWrapperElement
ppisljar added a commit that referenced this pull request May 10, 2017
* fix duplicate chart title

* updating el to axisWrapperElement
ppisljar added a commit that referenced this pull request May 10, 2017
* fix duplicate chart title

* updating el to axisWrapperElement
snide pushed a commit to snide/kibana that referenced this pull request May 30, 2017
* fix duplicate chart title

* updating el to axisWrapperElement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:fix v5.4.1 v5.5.0 v6.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Splitting chart causes duplicate chart titles
3 participants