Thanks to visit codestin.com
Credit goes to splashboard.unhappychoice.com

Skip to content

basic_bars

Renders a Bars payload from inline [widget.options].bars = [{label, value}]. Row order is preserved as authored; sorting / ranking is a renderer concern (list_ranking, chart_bar's sort option).

KindSafetyShapes
realtimeSafebars
OptionTypeRequiredDefaultDescription
barslist of {label, value: u64}no[]Labeled bars. Order is preserved (sorting / ranking lives in the renderer via style = "medal" / max_items).
ShapeRenderers
barsanimated_boot, animated_postfx, animated_scanlines, animated_splitflap, animated_wave, chart_bar, chart_pie, list_ranking
                                     
                                     
                                     
                                  
                                  
                                  
12 7                                 
ali bob                                 
[[widget]]
id = "basic_bars"
fetcher = "basic_bars"
render = "chart_bar"
                                        
                    alice 63.2%       
                             
        bob 36.8%         
                         
                       
                         
                           
                             
                                       
[[widget]]
id = "basic_bars"
fetcher = "basic_bars"
render = "chart_pie"
1. alice                              12
2. bob                                 7
                                        
                                        
                                        
[[widget]]
id = "basic_bars"
fetcher = "basic_bars"
render = "list_ranking"