Parent element to append widget to. If not specified, widget is appended to body. optional
min
du.widgets.histogram.Histogram.min(value)
Sets the lower boundary of the histogram. Default is unset (calculated automatically from data).
arg
type
description
value
number
Value to set as lower boundary.
return
description
du.widgets.histogram.Histogram
Reference to the current Histogram.
max
du.widgets.histogram.Histogram.max(value)
Sets the upper boundary of the histogram. Default is unset (calculated automatically from data).
arg
type
description
value
number
Value to set as upper boundary.
return
description
du.widgets.histogram.Histogram
Reference to the current Histogram.
bin
du.widgets.histogram.Histogram.bin(size)
Sets the bin width of the histogram. Default is unset (calculated automatically from data using the Friedman-Diaconis rule).
arg
type
description
size
number
Bin size to set.
return
description
du.widgets.histogram.Histogram
Reference to the current Histogram.
normalize
du.widgets.histogram.Histogram.normalize(on)
Normalizes histogram counts to 1. Default is false.
arg
type
description
on
boolean
Whether normalization is on.
return
description
du.widgets.histogram.Histogram
Reference to the current Histogram.
data
du.widgets.histogram.Histogram.data(data)
Binds data to the histogram. Expected data format: array of single numbers or array of x, y values. If binnedData is set to false, data will be binned automatically, otherwise it displayed as it is.