|
@@ -135,16 +135,16 @@ class GraphingTooltip(Recharts):
|
|
|
|
|
|
alias = "RechartsTooltip"
|
|
|
|
|
|
- # The separator between name and value.
|
|
|
+ # The separator between name and value. Default: ":"
|
|
|
separator: Var[str]
|
|
|
|
|
|
- # The offset size of tooltip. Number
|
|
|
+ # The offset size of tooltip. Number. Default: 10
|
|
|
offset: Var[int]
|
|
|
|
|
|
- # When an item of the payload has value null or undefined, this item won't be displayed.
|
|
|
+ # When an item of the payload has value null or undefined, this item won't be displayed. Default: True
|
|
|
filter_null: Var[bool]
|
|
|
|
|
|
- # If set false, no cursor will be drawn when tooltip is active.
|
|
|
+ # If set false, no cursor will be drawn when tooltip is active. Default: {"strokeWidth": 1, "fill": rx.color("gray", 3)}
|
|
|
cursor: Var[Union[Dict[str, Any], bool]] = LiteralVar.create(
|
|
|
{
|
|
|
"strokeWidth": 1,
|
|
@@ -155,16 +155,17 @@ class GraphingTooltip(Recharts):
|
|
|
# The box of viewing area, which has the shape of {x: someVal, y: someVal, width: someVal, height: someVal}, usually calculated internally.
|
|
|
view_box: Var[Dict[str, Any]]
|
|
|
|
|
|
- # The style of default tooltip content item which is a li element. DEFAULT: {}
|
|
|
+ # The style of default tooltip content item which is a li element. Default: {"color": rx.color("gray", 12)}
|
|
|
item_style: Var[Dict[str, Any]] = LiteralVar.create(
|
|
|
{
|
|
|
"color": Color("gray", 12),
|
|
|
}
|
|
|
)
|
|
|
|
|
|
- # The style of tooltip wrapper which is a dom element. DEFAULT: {}
|
|
|
+ # The style of tooltip wrapper which is a dom element. Default: {}
|
|
|
wrapper_style: Var[Dict[str, Any]]
|
|
|
- # The style of tooltip content which is a dom element. DEFAULT: {}
|
|
|
+
|
|
|
+ # The style of tooltip content which is a dom element. Default: {"background": rx.color("gray", 1), "borderColor": rx.color("gray", 4), "borderRadius": "8px"}
|
|
|
content_style: Var[Dict[str, Any]] = LiteralVar.create(
|
|
|
{
|
|
|
"background": Color("gray", 1),
|
|
@@ -173,30 +174,28 @@ class GraphingTooltip(Recharts):
|
|
|
}
|
|
|
)
|
|
|
|
|
|
- # The style of default tooltip label which is a p element. DEFAULT: {}
|
|
|
+ # The style of default tooltip label which is a p element. Default: {"color": rx.color("gray", 11)}
|
|
|
label_style: Var[Dict[str, Any]] = LiteralVar.create({"color": Color("gray", 11)})
|
|
|
|
|
|
- # This option allows the tooltip to extend beyond the viewBox of the chart itself. DEFAULT: { x: false, y: false }
|
|
|
- allow_escape_view_box: Var[Dict[str, bool]] = LiteralVar.create(
|
|
|
- {"x": False, "y": False}
|
|
|
- )
|
|
|
+ # This option allows the tooltip to extend beyond the viewBox of the chart itself. Default: {"x": False, "y": False}
|
|
|
+ allow_escape_view_box: Var[Dict[str, bool]]
|
|
|
|
|
|
- # If set true, the tooltip is displayed. If set false, the tooltip is hidden, usually calculated internally.
|
|
|
+ # If set true, the tooltip is displayed. If set false, the tooltip is hidden, usually calculated internally. Default: False
|
|
|
active: Var[bool]
|
|
|
|
|
|
# If this field is set, the tooltip position will be fixed and will not move anymore.
|
|
|
position: Var[Dict[str, Any]]
|
|
|
|
|
|
- # The coordinate of tooltip which is usually calculated internally.
|
|
|
+ # The coordinate of tooltip which is usually calculated internally. Default: {"x": 0, "y": 0}
|
|
|
coordinate: Var[Dict[str, Any]]
|
|
|
|
|
|
- # If set false, animation of tooltip will be disabled. DEFAULT: true in CSR, and false in SSR
|
|
|
+ # If set false, animation of tooltip will be disabled. Default: True
|
|
|
is_animation_active: Var[bool]
|
|
|
|
|
|
- # Specifies the duration of animation, the unit of this option is ms. DEFAULT: 1500
|
|
|
+ # Specifies the duration of animation, the unit of this option is ms. Default: 1500
|
|
|
animation_duration: Var[int]
|
|
|
|
|
|
- # The type of easing function. DEFAULT: 'ease'
|
|
|
+ # The type of easing function. Default: "ease"
|
|
|
animation_easing: Var[LiteralAnimationEasing]
|
|
|
|
|
|
|