Skip to content

Bug: histogram silently ignores data, when bin size is too small #1682

Closed
@cnowzohour

Description

@cnowzohour

When plotting histograms with very fine grained bins, some data will be ignored. See:

https://codepen.io/cnowzohour/pen/qmYmoM

vs

https://codepen.io/cnowzohour/pen/vmjmjM

Both histograms should show 10 bars, but the second one only shows 5 - the only difference being the bin size of 0.005 vs 0.001.

I realized this when visualizing timestamps over one day with a bin size of 10 seconds:

plotly/plotly.R#1001

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions