Comments (3)
Okay I got this wrong, I think in fact labels does not show because each trace has its own bins. Stacking happens then almost by chance when some bins happens to be the same for several traces.
When only certain types of labels are displayed for a value it means that this bin only exists for this trace.
So it's definitely a bad name for this issue.
Is there a way to have a stacked histogram, with several traces binned in the same way. Where binning wouldn't be set manually but determined by an algorithm using the aggregation of all traces as input?
from plotly.js.
@ni-hil That's definitely a bug, and leads to a highly misleading chart. If you don't specify bins explicitly, grouped or stacked histograms need to all get the same bins.
from plotly.js.
@etpinard from #42 (comment):
Calculating histogram autobins from all traces might break some plots that maneuver around that problem.
Wouldn't any plot maneuvering around this do so by setting manual bins (so altering autobin wouldn't affect them)? You're right that we need to be careful not to change the autobin results much if at all in cases where it gives a decent result... but that should be manageable. And given that the plot step matches bar widths anyway, I think it's safe to say it's always a bad choice when grouped or stacked histograms use different bins - I'd go so far as to say it mucks up the central metaphor of binning!
from plotly.js.
Related Issues (20)
- Feature Request: Allow the hover label text background colour to be configurable
- toggling visibility of most legend groups fails in editable charts as of plotly 2.22.0 HOT 1
- Check if points are inside pre-defined selections area
- visualize dots inside points in one plot,when hover show dots feature then points.
- Should legend titles be editable? HOT 1
- editing legend group title in editable mode modifies titles of all traces in that group HOT 2
- Accessibility of tools in modebar HOT 4
- Theme templates missing from Plotly.js
- Right after drawing a new shape it is not set on the fullLayout when there is a shape in template HOT 3
- 403: Forbidden Error - Plotly unavailable now for download/use? HOT 22
- How can I disable zoom without disabling pan - dragmode: "pan" does not disable zoom
- Horizontal Stacked Bar Labels Cut Off HOT 2
- Double clicking one item in a legend hides traces in other legends
- Pie double click problem when having multiple legends
- Double click does not work on Mesh3D
- Navigate to previous view or zoom/pan level
- Plotly Express cannot process wide-form data with columns of different type. HOT 1
- Histogram does not correctly display trace with single X value (when another trace has more than one X value)
- How to import plotly extendTraces in a react app?
- `traceorder` and groups not setup correctly on multi legends
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plotly.js.