ScatterPlot2DView
Base class for creating 2d-scatter plots.
:property x_label: The X-axis label :type x_label: str :property y_label: The Y-axis label :type y_label: str :property x_tick_labels: The labels of X-ticks :type x_tick_labels: list[str]
The view model is:
{
"type": "scatter-plot-2d-view",
"title": str,
"caption": str,
"data": {
"x_label": str,
"y_label": str,
"x_tick_labels": List[str] | None,
"series": [
{
"data": {
"x": List[Float],
"y": List[Float],
"tags": List[Dict[str,str]] | None
},
"name": str,
"x_name": str,
"y_name": str,
},
...
]
}
}
x_label: str
x_tick_labels: List
y_label: str
Initialize self. See help(type(self)) for accurate signature.
Add a series of points to plot
List
List
str
str
str
List
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