du.widgets.boxplot.BoxPlot(name[, parent])
The box plot widget class.
| arg | type | description |
|---|
| name | string | Identifier of the widget. |
| parent | object | Parent element to append widget to. If not specified, widget is appended to body. optional |
du.widgets.boxplot.BoxPlot.data(data)
Binds data to the box plot. Expected data format: array containing objects with a
name property with the box name and a
values property that contains the array of values for the box.
| arg | type | description |
|---|
| data | object | Data to plot. |
| return | description |
|---|
du.widgets.boxplot.BoxPlot | Reference to the current BoxPlot. |
du.widgets.boxplot.BoxPlot.highlight(key, duration)
Highlights the specified box.
| arg | type | description |
|---|
| key | string string[] | Single key or an array of keys of the box(es) to highlight. |
| duration | number | Duration of the highlight animation. |
| return | description |
|---|
du.widgets.boxplot.BoxPlot | Reference to the current BoxPlot. |