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

[SIP-5] Refactor treemap #5670

Merged
merged 5 commits into from
Aug 24, 2018
Merged

[SIP-5] Refactor treemap #5670

merged 5 commits into from
Aug 24, 2018

Conversation

kristw
Copy link
Contributor

@kristw kristw commented Aug 18, 2018

Decouple the visualization code from slice and formData

Test

Ran a development instance with the code above and verified with production instance that they produce the same results.

@williaster @conglei @graceguo-supercat

@codecov-io
Copy link

codecov-io commented Aug 20, 2018

Codecov Report

Merging #5670 into master will decrease coverage by 0.04%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5670      +/-   ##
==========================================
- Coverage   63.43%   63.38%   -0.05%     
==========================================
  Files         361      361              
  Lines       22977    22995      +18     
  Branches     2558     2559       +1     
==========================================
  Hits        14575    14575              
- Misses       8387     8405      +18     
  Partials       15       15
Impacted Files Coverage Δ
superset/assets/src/visualizations/treemap.js 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e6efae...fe5cf6d. Read the comment docs.

Copy link
Contributor

@williaster williaster left a comment

Choose a reason for hiding this comment

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

This looks good to me! Hadn't seen that case for recursive prop checking before 👍

const formatNumber = d3.format(numberFormat);

function draw(data, eltWidth, eltHeight) {
const margin = {
Copy link
Contributor

Choose a reason for hiding this comment

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

should we pass this in as a prop? maybe in the future / not saying it should be part of this PR, just seems weird to include it, with all 0s, and not have it be set-able.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added prop margin.

@kristw kristw changed the title Refactor treemap [SIP-5] Refactor treemap Aug 24, 2018
@williaster williaster merged commit 54ae215 into apache:master Aug 24, 2018
kristw added a commit to kristw/incubator-superset that referenced this pull request Aug 27, 2018
* refactor treemap

* refactor treemap code

* Add proptypes

* add proptypes for tree

* Add margin prop

(cherry picked from commit 54ae215)
@kristw kristw deleted the kristw-treemap branch August 27, 2018 20:36
kristw added a commit to kristw/incubator-superset that referenced this pull request Aug 27, 2018
* refactor treemap

* refactor treemap code

* Add proptypes

* add proptypes for tree

* Add margin prop

(cherry picked from commit 54ae215)
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Oct 12, 2018
* refactor treemap

* refactor treemap code

* Add proptypes

* add proptypes for tree

* Add margin prop
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
* refactor treemap

* refactor treemap code

* Add proptypes

* add proptypes for tree

* Add margin prop
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants