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

Avoid dividing by zero for sparkline in time table viz #3679

Merged

Conversation

michellethomas
Copy link
Contributor

@michellethomas michellethomas commented Oct 16, 2017

When calculating ratios to add to the sparkline, we should not be dividing by zero or null values. Instead I'm passing a null value to sparkData. This will result in a blank space in the sparkline. This matches how the line chart handles dividing by zero or null.

image

Currently, dividing by null values or 0 is breaking the sparkline so no part of the chart shows up.

@coveralls
Copy link

coveralls commented Oct 16, 2017

Coverage Status

Coverage remained the same at 70.384% when pulling fb407b4 on michellethomas:time_table_viz_null_values into d0b5b44 on apache:master.

@mistercrunch mistercrunch merged commit ce5fa37 into apache:master Oct 16, 2017
@michellethomas michellethomas deleted the time_table_viz_null_values branch October 17, 2017 17:30
michellethomas added a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.20.5 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.20.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants