Module awful.widget.graph

Functions

set_border_color (graph, color) Set the graph border color.
set_color (graph, color) Set the graph foreground color.
set_background_color (graph, color) Set the graph background color.
set_max_value (graph, value) Set the maximum value the graph should handle.
set_scale (graph, scale) Set the graph to automatically scale its values.
set_stack (graph, stack) Set the graph to draw stacks.
set_stack_colors (graph, stack_colors) Set the graph stacking colors.
graph:set_height (height) Set the graph height.
graph:set_width (graph, width) Set the graph width.
new (args) Create a graph widget.

Tables

graph A graph widget.


Functions

set_border_color (graph, color)
Set the graph border color. If the value is nil, no border will be drawn.

Parameters:

  • graph: The graph.
  • color: The border color to set.
set_color (graph, color)
Set the graph foreground color.

Parameters:

  • graph: The graph.
  • color: The graph color.
set_background_color (graph, color)
Set the graph background color.

Parameters:

  • graph: The graph.
  • color: The graph background color.
set_max_value (graph, value)
Set the maximum value the graph should handle. If "scale" is also set, the graph never scales up below this value, but it automatically scales down to make all data fit.

Parameters:

  • graph: The graph.
  • value: The value.
set_scale (graph, scale)
Set the graph to automatically scale its values. Default is false.

Parameters:

  • graph: The graph.
  • scale: A boolean value
set_stack (graph, stack)
Set the graph to draw stacks. Default is false.

Parameters:

  • graph: The graph.
  • stack: A boolean value.
set_stack_colors (graph, stack_colors)
Set the graph stacking colors. Order matters.

Parameters:

  • graph: The graph.
  • stack_colors: A table with stacking colors.
graph:set_height (height)
Set the graph height.

Parameters:

  • height: The height to set.
graph:set_width (graph, width)
Set the graph width.

Parameters:

  • graph: The graph.
  • width: The width to set.
new (args)
Create a graph widget.

Parameters:

  • args: Standard widget() arguments. You should add width and height key to set graph geometry.

Returns:

    A graph widget.

Tables

graph
A graph widget. awful.widget.graph
generated by LDoc 1.2