This module contains the Chart class, which is a gtk.Widget that draws simple charts. Most of the actual work is performed by the classes in the gui.charting.axis and gui.charting.graph modules.
A list of the features charts provide and a usage example can be found on the documentation page of the gui.charting package.
A named tuple (x, y, width, height) that indicates the position and size of the area of the widget used to show the actual chart rather than the tick labels, the dimension labels, and the caption. Read-only.
The tuple is automatically updated when captionText, minCaptionLines or the widget’s size allocation change.
Adds the given graph to those that are displayed on chart. The graph will use the dimension of the secondary ordinate. If showSecondaryOrdinate is False, the graph will not be shown.
A chart can have any number of graphs, and a graph can be shown on any number of charts.
The minimum number of lines worth of space the chart reserves for its caption. If the captions uses fewer lines, it still receives the amount of vertical space that would be used by that number of lines. If a caption uses more lines, it receives as much space as required.
This is useful to give a series of related charts with captions of different lengths an uniform appearance.