Module blingbling.wlourf_circle_graph
Circle graph from wlourf.
Functions
set_radius (radius) | Set the radius of the circle. |
set_graph_color (color) | Set the default color for the graph. |
set_graph_colors (colors) | Set the colors and theirs ranges for the graph. |
set_show_text (boolean) | Display text on the graph or not. |
set_font (font) | Define the text's font . |
set_font_size (size) | Define the text font size. |
set_label (text) | Define the text to display. |
circle_graph:set_height (height) | Set the c_graph height. |
circle_graph:set_width (width) | Set the graph width. |
circle_graph.new (args) | Create a c_graph widget. |
Functions
- set_radius (radius)
-
Set the radius of the circle.
Parameters:
- radius an integer value for the radius of the circle
Usage:
circle:set_radius(integer)
- set_graph_color (color)
-
Set the default color for the graph.
Parameters:
- color a string "#rrggbbaa" or "#rrggbb"
Usage:
circle:set_graph_color(string) -->"#rrggbbaa"
- set_graph_colors (colors)
-
Set the colors and theirs ranges for the graph.
Parameters:
- colors a table of tables {color , float } with color a string "#rrggbbaa" or "#rrggbb" and float which is 0<=float<=1
Usage:
circle:set_graph_colors({{"#88aa00ff",0}, --all value > 0 will be displayed using this color {"#d4aa00ff", 0.5}, {"#d45500ff",0.77}})
- set_show_text (boolean)
-
Display text on the graph or not.
Parameters:
- boolean true or false (default is false)
Usage:
circle:set_show_text(boolean) --> true or false
- set_font (font)
-
Define the text's font .
Parameters:
- font a string that contains the font name family and weight
Usage:
circle:set_font(string)
- set_font_size (size)
-
Define the text font size.
Parameters:
- size the font size
Usage:
circle:set_font_size(integer)
- set_label (text)
-
Define the text to display.
Parameters:
- text the text to display
Usage:
circle:set_label(string)
- circle_graph:set_height (height)
-
Set the c_graph height.
Parameters:
- height The height to set.
- circle_graph:set_width (width)
-
Set the graph width.
Parameters:
- width The width to set.
- circle_graph.new (args)
-
Create a c_graph widget.
Parameters:
- args Standard widget() arguments. You should add width and height key to set graph geometry.
Returns:
-
A graph widget.