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: default missing values to zero on area chart #8678

Merged
merged 3 commits into from Dec 2, 2019
Merged

fix: default missing values to zero on area chart #8678

merged 3 commits into from Dec 2, 2019

Conversation

villebro
Copy link
Member

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

Area chart currently fails to render properly if there are missing groupby values in the time series. This PR makes it possible to specify NULL handling behavior per NVD3 chart, and defaults values to zero for the Area chart. Note: other charts are left unchanged, as defaulting to zero is most likely not expected behavior for all charts (at least line charts).

BEFORE

Screenshot 2019-11-27 at 18 21 59

AFTER

Screenshot 2019-11-27 at 18 21 18

TEST PLAN

Visual inspection.

ADDITIONAL INFORMATION

REVIEWERS

@etr2460

@villebro villebro changed the title Area na fix: default missing values to zero on area chart Nov 27, 2019
@codecov-io
Copy link

codecov-io commented Nov 27, 2019

Codecov Report

Merging #8678 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8678      +/-   ##
==========================================
+ Coverage   65.77%   65.77%   +<.01%     
==========================================
  Files         482      482              
  Lines       23834    23836       +2     
  Branches     2594     2594              
==========================================
+ Hits        15676    15678       +2     
  Misses       7985     7985              
  Partials      173      173
Impacted Files Coverage Δ
superset/viz.py 71.33% <100%> (+0.03%) ⬆️

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 75c1378...4b43395. Read the comment docs.

Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

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

This seems legit to me, thanks for making the fix!

@villebro villebro merged commit bd91f33 into apache:master Dec 2, 2019
@villebro villebro added the v0.35 label Dec 23, 2019
villebro added a commit that referenced this pull request Jan 4, 2020
* Add fill_value to area chart pivot

* Only fill for area chart

* Linting
@mistercrunch mistercrunch added 🍒 0.35.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.36.0 labels Feb 28, 2024
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
* Add fill_value to area chart pivot

* Only fill for area chart

* Linting
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 size/XS v0.35 🍒 0.35.2 🚢 0.36.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Area Chart doesn't fill in area when a new category is added
4 participants