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

[ZEPPELIN-2253] Piechart won't render when column selected as 'key' is changed #2132

Closed
wants to merge 1 commit into from

Conversation

sravan-s
Copy link
Contributor

What is this PR for?

  • Fixes issue with pie chart rendering, if user changes pie chart's domain
  • When pie chart's key(domain) is changed, this error is logged:
    'Uncaught TypeError: arcs[idx] is not a function at pie.js:358'
  • Even if user changes the key and values again, chart remains broken
  • Fix: set this.chart to null, which makes render function to initialize new
    pie chart constructor

What type of PR is it?

[Bug Fix]

What is the Jira issue?

How should this be tested?

  • Create a new pie chart using built in visualization
  • Remove column selected as 'key'
  • Add a new column as 'key'
  • Chart is rendered perfectly

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

* Fixes ZEPPELIN-2253
* When pie chart's key(domain) is changed, this error is logged:
 'Uncaught TypeError: arcs[idx] is not a function at pie.js:358'
* Even if we change key and values, chart remains broken

* Fix: set this.chart to null, which inturn makes this.render to
intialize a new chart constructor
@sravan-s
Copy link
Contributor Author

A video showing the bug is uploaded at JIRA, cannot seem to upload the video here, the webm format isn't supported
If someone else could propose a better solution, it's appreciated 😃

@Leemoonsoo
Copy link
Member

Tested and LGTM.

Merge to master and branch-0.7 if no further comments.

asfgit pushed a commit that referenced this pull request Mar 15, 2017
…s changed

### What is this PR for?
* Fixes issue with pie chart rendering, if user changes pie chart's domain
* When pie chart's key(domain) is changed, this error is logged:
  'Uncaught TypeError: arcs[idx] is not a function at pie.js:358'
* Even if user changes the key and values again, chart remains broken
* Fix: set this.chart to null, which makes render function to initialize new
pie chart constructor
### What type of PR is it?
[Bug Fix]

### What is the Jira issue?
* [ZEPPELIN-533](https://issues.apache.org/jira/browse/ZEPPELIN-2253)

### How should this be tested?
* Create a new pie chart using built in visualization
* Remove column selected as 'key'
* Add a new column as 'key'
* Chart is rendered perfectly

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: ess_ess <sravans2011@gmail.com>

Closes #2132 from sravan-s/ZEPPELIN-2253 and squashes the following commits:

310aecf [ess_ess] Initialize chart to null inside 'render()'

(cherry picked from commit f2c865a)
Signed-off-by: Lee moon soo <moon@apache.org>
@asfgit asfgit closed this in f2c865a Mar 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants