GOffice.GraphChart¶
- Subclasses:
None
Methods¶
- Inherited:
GOffice.GraphOutlinedObject (1), GOffice.GraphObject (40), GObject.Object (37), GOffice.StyledObject (8)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Is the charts cardinality currently valid |
||
r/w |
Number of columns in graph grid |
||
r/w |
Is plot area manual |
||
r/w |
Position and size of plot area, in percentage of chart size |
||
r/w |
Number of rows in graph grid |
||
r/w |
Horizontal chart position in graph grid |
||
r/w |
Vertical chart position in graph grid |
Signals¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
axes |
[ |
r |
|
axis_set |
r |
||
base |
r |
||
cardinality_valid |
r |
||
cols |
r |
||
full_cardinality |
r |
||
grid |
r |
||
is_plot_area_manual |
r |
||
plot_area |
r |
||
plots |
[ |
r |
|
rows |
r |
||
visible_cardinality |
r |
||
x_pos |
r |
||
x_pos_actual |
r |
||
y_pos |
r |
||
y_pos_actual |
r |
Class Details¶
- class GOffice.GraphChart(**kwargs)¶
- Bases:
- Abstract:
No
- classmethod view_get_plot_area(view)¶
- Parameters:
view (
GOffice.GraphView
) –- Return type:
- axis_set_assign(type)¶
- Parameters:
type (
GOffice.GraphAxisSet
) –- Return type:
- axis_set_is_valid(type)¶
- Parameters:
type (
GOffice.GraphAxisSet
) –- Return type:
- foreach_elem(only_visible, handler, *data)¶
- Parameters:
only_visible (
bool
) – whether to only apply to visible childrenhandler (
GOffice.GraphEnumFunc
) – callback
Applies handler to children
- get_axes(target)¶
- Parameters:
target (
GOffice.GraphAxisType
) –GOffice.GraphAxisType
- Returns:
a list which the caller must free of all axis of type target associated with self.
- Return type:
- get_axis_set()¶
- Return type:
- get_cardinality(full, visible)¶
- Parameters:
Update and cache cardinality values if required, and returns full and visible cardinality. Full cardinality is the number of chart elements that require a different style. Visible cardinality is the number of chart elements shown in chart legend.
full and visible may be
None
.
- get_plot_area(plot_area)¶
- Parameters:
plot_area (
GOffice.GraphViewAllocation
) –GOffice.GraphViewAllocation
- Returns:
True
if plot area position is manual.- Return type:
Stores plot area in plot_area, in fraction of chart size.
- get_plots()¶
- Returns:
the list of the plots in self.
- Return type:
- get_position(x, y, cols, rows)¶
- request_cardinality_update()¶
- set_plot_area(plot_area)¶
- Parameters:
plot_area (
GOffice.GraphViewAllocation
) –GOffice.GraphViewAllocation
If plot_area !=
None
, sets plot area size and location, in fraction of chart size, and sets GogChart::is_plot_area_manual flag toTrue
. If plot_area ==None
, sets GogChart::is_plot_area_manual toFalse
.
Property Details¶
- GOffice.GraphChart.props.cardinality_valid¶
-
Is the charts cardinality currently valid
- GOffice.GraphChart.props.columns¶
-
Number of columns in graph grid
- GOffice.GraphChart.props.is_plot_area_manual¶
-
Is plot area manual
- GOffice.GraphChart.props.plot_area¶
-
Position and size of plot area, in percentage of chart size
- GOffice.GraphChart.props.rows¶
-
Number of rows in graph grid
- GOffice.GraphChart.props.xpos¶
-
Horizontal chart position in graph grid