This commit is contained in:
Tom Gotsman 2025-02-22 16:38:40 +00:00 committed by GitHub
commit f1d783bbdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -184,7 +184,7 @@ class ZAxis(Recharts):
z_axis_id: Var[Union[str, int]]
# The range of axis. Default: [10, 10]
range: Var[List[int]]
range: Var[List[int]] = LiteralVar.create([60, 400])
# The unit of data displayed in the axis. This option will be used to represent an index unit in a scatter chart.
unit: Var[Union[str, int]]
@ -486,6 +486,9 @@ class Scatter(Recharts):
# The source data, in which each element is an object.
data: Var[List[Dict[str, Any]]]
# The name of the data. It is used to represent the scatter in legend.
name: Var[str]
# The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye' | 'none'. Default: "circle"
legend_type: Var[LiteralLegendType]

View File

@ -1349,6 +1349,7 @@ class Scatter(Recharts):
cls,
*children,
data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
name: Optional[Union[Var[str], str]] = None,
legend_type: Optional[
Union[
Literal[
@ -1444,6 +1445,7 @@ class Scatter(Recharts):
Args:
*children: The children of the component.
data: The source data, in which each element is an object.
name: The name of the data. It is used to represent the scatter in legend.
legend_type: The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye' | 'none'. Default: "circle"
x_axis_id: The id of x-axis which is corresponding to the data. Default: 0
y_axis_id: The id of y-axis which is corresponding to the data. Default: 0