question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Interrupt (null values) as gap mode for stacked scatter charts

See original GitHub issue

Hi!

We have been evaluating a lot of charting frameworks and found that plotly is the one that fit our needs the best. However we have one major issue with it on the stacked scatter charts. Currently the only two supported gapModes is “infer zero” and “interpolate” which hinders us from fully commit to Plotly. In our application a null value signifies a data loss and replacing it with 0 provides a wrong picture as the 0 indicates that we have data and the value is 0 not that we actually in fact have a data loss.

I pulled down the code and saw that src/traces/scatter/plot.js:407 suggests interrupt as a future new mode. Is this covering null values not being shown in the area charts and is there an ETA for when this will arrive? If interrupt is something else, I would like to propose having a gap mode where null values aren’t drawn in the stacked group.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:6
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
warren-oneillcommented, Oct 28, 2020

I ended up getting around the issues by using a stacked bar plot with no gaps or borders.

fig = go.Figure()
fig.add_trace(go.Bar(x=x, y=y, name=u, opacity=0.5, 
                                    marker=dict(line=dict(width=0))))
fig.update_layout(barmode='stack', bargap=0)
0reactions
warren-oneillcommented, Oct 15, 2020

However, I was able to remove all the zeroes from the plot by setting mode='none'. It’s only the issues with the hover I am having.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I hide data gaps in plotly? - Stack Overflow
The only reason it is adding the null item is to avoid a line bridging the gap. Not adding that still creates a...
Read more >
Display empty cells, null (#N/A) values, and hidden worksheet ...
Click Hidden and Empty Cells. In the Show empty cells as: options box, click Gaps, Zero, or Connect data points with line. Note:...
Read more >
How to remove blank/ zero values from a graph in excel
How to stop an excel chart from plotting the blank values in a table.In some situations, a chart in excel will plot blank...
Read more >
Clustered and Stacked Column and Bar Charts - Peltier Tech
Reduce the gap between columns/bars to give the chart a clustered appearance: select one series of columns, press Ctrl+1 (numeral one) to open...
Read more >
Python Figure Reference: scatter Traces - Plotly
The scatter trace type encompasses line charts, scatter charts, text charts, ... Code: fig.update_traces(mode=<VALUE>, selector=dict(type='scatter'))
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found