File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
chartlets.py/demo/my_extension Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11from typing import Any
22import altair as alt
33from chartlets import Component , Input , Output , State
4- from chartlets .components import VegaChart , Box , Select
4+ from chartlets .components import VegaChart , Box , Select , Skeleton
55
66from server .context import Context
77from server .panel import Panel
1313@panel .layout ()
1414def render_panel (ctx : Context ) -> Component :
1515 selected_dataset : int = 0
16+ chart_skeleton = Skeleton (height = "100px" , variant = "rounded" , animation = "wave" )
1617 chart = VegaChart (
17- id = "chart" , chart = make_chart (ctx , selected_dataset ), style = {"flexGrow" : 1 }
18+ id = "chart" ,
19+ chart = make_chart (ctx , selected_dataset ),
20+ style = {"flexGrow" : 1 },
21+ skeletonProps = chart_skeleton .to_dict (),
1822 )
1923 select = Select (
2024 id = "selected_dataset" ,
You can’t perform that action at this time.
0 commit comments