HistogramView
Base class for creating histograms.
:property x_label: The X-axis label :type x_label: str :property y_label: The Y-axis label :type y_label: str :property nbins: The number of bins :type nbins: int :property density: True to plot the density, The frequency is plotted overwise (default) :type density: bool :property x_tick_labels: The labels of X-ticks :type x_tick_labels: list[str]
The view model is:
{
"type": "histogram-view",
"title": str,
"caption": str,
"data": {
"x_label": str,
"y_label": str,
"series": [
{
"data": {
"x": List[Float],
"y": List[Float],
},
"name": str,
},
...
]
}
}
mode: Literal
nbins: int
x_label: str
x_tick_labels: List
y_label: str
Initialize self. See help(type(self)) for accurate signature.
int
- 10
Literal
- FREQUENCY
Add series of raw data.
List
str
Add series of raw data from a dataframe. The values are flattened by column
DataFrame
str
Add series of pre-computed x and y histogram values. Vector x is the vector of bin centers and y contains the magnitudes at corresponding x positions.
Union
List
str
Add technical info
TechnicalInfo
Copy the view information from another view
View
Convert to dictionary
ConfigParams
dict
Mark the view as not interactive, disable the pagination
Get style
TypingStyle
Get technical info dict
str
TechnicalInfo
Get technical info
TechnicalInfoDict
Get title
Optional
Get type
ViewType
Is favorite
bool
Is interaction disabled
bool
Set favorite
bool
Set typing style for this view instance. This overrides the style defines in the view decorator and the default style of the view type With this you can define a custom style for a specific view instance when you view is generic.
TypingStyle
Set technical info
TechnicalInfoDict
Set title
str
Convert to DTO
ConfigParams
ViewDTO
Generate range list like 0,1,2...length
int
List
Dict
Method that return true is the provided json is a json of a view
Any
bool