You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# The label of axis, which appears next to the axis.
77
-
label: Var[str|int|dict[str, Any]]
79
+
label: Var[str|int|Component|dict[str, Any]]
78
80
79
81
# If 'auto' set, the scale function is decided by the type of chart, and the props type. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold'. Default: "auto"
80
82
scale: Var[LiteralScale]
@@ -89,7 +91,7 @@ class Axis(Recharts):
89
91
ticks: Var[Sequence[str|int]]
90
92
91
93
# If set false, no ticks will be drawn.
92
-
tick: Var[bool]
94
+
tick: Var[bool|dict|Component]
93
95
94
96
# The count of axis ticks. Not used if 'type' is 'category'. Default: 5
95
97
tick_count: Var[int]
@@ -275,6 +277,9 @@ class Cartesian(Recharts):
275
277
# The type of icon in legend. If set to 'none', no legend item will be rendered. 'line' | 'plainline' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'none' optional
276
278
legend_type: Var[LiteralLegendType]
277
279
280
+
# If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
281
+
label: Var[bool|dict[str, Any] |Component]
282
+
278
283
# If set false, animation of bar will be disabled. Default: True
# If false set, dots will not be drawn. If true set, dots will be drawn which have the props calculated internally. Default: False
347
-
dot: Var[bool|dict[str, Any]]
352
+
dot: Var[ACTIVE_DOT_TYPE]
348
353
349
354
# The dot is shown when user enter an area chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. Default: {stroke: rx.color("accent", 2), fill: rx.color("accent", 10)}
# If set false, labels will not be drawn. If set true, labels will be drawn which have the props calculated internally. Default: False
358
-
label: Var[bool]
359
-
360
362
# The value which can describle the line, usually calculated internally.
361
-
base_line: Var[str|Sequence[dict[str, Any]]]
363
+
base_line: Var[int|Sequence[dict[str, Any]]]
362
364
363
365
# The coordinates of all the points in the area, usually calculated internally.
364
366
points: Var[Sequence[dict[str, Any]]]
@@ -392,9 +394,6 @@ class Bar(Cartesian):
392
394
# If false set, background of bars will not be drawn. If true set, background of bars will be drawn which have the props calculated internally. Default: False
393
395
background: Var[bool]
394
396
395
-
# If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
396
-
label: Var[bool]
397
-
398
397
# The stack id of bar, when two bars have the same value axis and same stack_id, then the two bars are stacked in order.
399
398
stack_id: Var[str]
400
399
@@ -431,7 +430,7 @@ class Line(Cartesian):
431
430
alias="RechartsLine"
432
431
433
432
# The interpolation type of line. And customized interpolation function can be set to type. It's the same as type in Area.
434
-
type_: Var[LiteralAreaType]
433
+
type_: Var[LiteralCurveType]
435
434
436
435
# The color of the line stroke. Default: rx.color("accent", 9)
# The dot is shown when mouse enter a line chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. Default: {"stroke": rx.color("accent", 10), "fill": rx.color("accent", 4)}
443
-
dot: Var[bool|dict[str, Any]] =LiteralVar.create(
442
+
dot: Var[ACTIVE_DOT_TYPE] =LiteralVar.create(
444
443
{
445
444
"stroke": Color("accent", 10),
446
445
"fill": Color("accent", 4),
447
446
}
448
447
)
449
448
450
449
# The dot is shown when user enter an area chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. Default: {"stroke": rx.color("accent", 2), "fill": rx.color("accent", 10)}
0 commit comments