brownplt / code.pyret.org

Website for serving Pyret to folks.
Other
24 stars 45 forks source link

Histograms on columns with a single unique value and user-specified bin-width cause internal error in chart-lib #313

Closed jpolitz closed 5 years ago

jpolitz commented 5 years ago
import chart as C

C.from-list.histogram([list: 1, 1, 1]).bin-width(50)

If bin-width is not set, the data-series renders, but once bin-width is called, the rendering hangs. This seems to be a problem for many values of bin-width.

Mentioning @sorawee in case he can tell off the top of his head.

jpolitz commented 5 years ago

Reported at https://github.com/google/google-visualization-issues/issues/2758 after narrowing it down; that issue should either tell us if we're using the API wrong or if it's a charts issue.