awesome API documentation

# Module `awful.widget.graph`

### Info:

- Copyright: 2009 Julien Danjou
- Release: v3.5.9
- Author: Julien Danjou <julien@danjou.info>

## 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.
set_height (height) | Set the graph height.
set_width (graph, width) | Set the graph width.
new (args) | Create 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.
set_height (height)
  Set the graph height.

  ### Parameters:

  - height The height to set.
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.

generated by LDoc 1.4.3 Last updated 2016-08-08 05:23:17