Giter Site home page Giter Site logo

Comments (3)

fparga avatar fparga commented on May 4, 2024

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.

alexcjohnson avatar alexcjohnson commented on May 4, 2024

@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.

alexcjohnson avatar alexcjohnson commented on May 4, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.