|  |  |  | Goffice Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
                    GogChart;
GogAxisSet          gog_axis_set_from_str               (char const *str);
gboolean            gog_chart_get_position              (GogChart const *chart,
                                                         unsigned *x,
                                                         unsigned *y,
                                                         unsigned *cols,
                                                         unsigned *rows);
void                gog_chart_set_position              (GogChart *chart,
                                                         unsigned int x,
                                                         unsigned int y,
                                                         unsigned int cols,
                                                         unsigned int rows);
gboolean            gog_chart_get_plot_area             (GogChart *chart,
                                                         GogViewAllocation *plot_area);
void                gog_chart_set_plot_area             (GogChart *chart,
                                                         GogViewAllocation const *plot_area);
void                gog_chart_request_cardinality_update
                                                        (GogChart *chart);
void                gog_chart_get_cardinality           (GogChart *chart,
                                                         unsigned *full,
                                                         unsigned *visible);
void                gog_chart_foreach_elem              (GogChart *chart,
                                                         gboolean only_visible,
                                                         GogEnumFunc handler,
                                                         gpointer data);
GSList *            gog_chart_get_plots                 (GogChart const *chart);
GogAxisSet          gog_chart_get_axis_set              (GogChart const *chart);
gboolean            gog_chart_axis_set_is_valid         (GogChart const *chart,
                                                         GogAxisSet type);
gboolean            gog_chart_axis_set_assign           (GogChart *chart,
                                                         GogAxisSet type);
GSList *            gog_chart_get_axes                  (GogChart const *chart,
                                                         GogAxisType target);
GogGrid *           gog_chart_get_grid                  (GogChart const *chart);
GogViewAllocation const * gog_chart_view_get_plot_area  (GogView const *view);
gboolean            gog_chart_is_3d                     (GogChart const *chart);
"cardinality-valid" gboolean : Read "columns" gint : Read / Write "is-plot-area-manual" gboolean : Read / Write "plot-area" gchar* : Read / Write "rows" gint : Read / Write "xpos" gint : Read / Write "ypos" gint : Read / Write
gboolean gog_chart_get_position (GogChart const *chart, unsigned *x, unsigned *y, unsigned *cols, unsigned *rows);
| 
 | const GogChart | 
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| Returns : | TRUE if the chart has been positioned. | 
void gog_chart_set_position (GogChart *chart, unsigned int x, unsigned int y, unsigned int cols, unsigned int rows);
| 
 | GogChart | 
| 
 | |
| 
 | |
| 
 | |
| 
 | 
gboolean gog_chart_get_plot_area (GogChart *chart, GogViewAllocation *plot_area);
Stores plot area in plot_area, in fraction of chart size.
| 
 | GogChart | 
| 
 | GogViewAllocation | 
| Returns : | TRUEif plot area position is manual. | 
void gog_chart_set_plot_area (GogChart *chart, GogViewAllocation const *plot_area);
If plot_area != NULL, sets plot area size and location, in fraction of chart size, and sets GogChart::is_plot_area_manual flag to TRUE. If plot_area == NULL, sets GogChart::is_plot_area_manual to FALSE.
| 
 | GogChart | 
| 
 | GogViewAllocation | 
void                gog_chart_request_cardinality_update
                                                        (GogChart *chart);
| 
 | 
void gog_chart_get_cardinality (GogChart *chart, unsigned *full, unsigned *visible);
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 NULL.
| 
 | a GogChart | 
| 
 | placeholder for full cardinality | 
| 
 | placeholder for visible cardinality | 
void gog_chart_foreach_elem (GogChart *chart, gboolean only_visible, GogEnumFunc handler, gpointer data);
| 
 | |
| 
 | |
| 
 | |
| 
 | 
GogAxisSet gog_chart_get_axis_set (GogChart const *chart);
| 
 | |
| Returns : | 
gboolean gog_chart_axis_set_is_valid (GogChart const *chart, GogAxisSet type);
| 
 | |
| 
 | |
| Returns : | 
gboolean gog_chart_axis_set_assign (GogChart *chart, GogAxisSet type);
| 
 | |
| 
 | |
| Returns : | 
GSList * gog_chart_get_axes (GogChart const *chart, GogAxisType target);
| 
 | GogChart | 
| 
 | GogAxisType | 
| Returns : | a list which the caller must free of all axis of type targetassociated withchart. | 
GogGrid * gog_chart_get_grid (GogChart const *chart);
| 
 | GogChart | 
| Returns : | the grid associated with chartif one exists
otherwise NULL. | 
GogViewAllocation const * gog_chart_view_get_plot_area (GogView const *view);
| 
 | |
| Returns : | 
"cardinality-valid" property"cardinality-valid" gboolean : Read
Is the charts cardinality currently valid.
Default value: FALSE
"columns" property"columns" gint : Read / Write
Number of columns in graph grid.
Allowed values: >= 1
Default value: 1
"is-plot-area-manual" property"is-plot-area-manual" gboolean : Read / Write
Is plot area manual.
Default value: FALSE
"plot-area" property"plot-area" gchar* : Read / Write
Position and size of plot area, in percentage of chart size.
Default value: "0 0 1 1"
"rows" property"rows" gint : Read / Write
Number of rows in graph grid.
Allowed values: >= 1
Default value: 1
"xpos" property"xpos" gint : Read / Write
Horizontal chart position in graph grid.
Allowed values: >= 0
Default value: 0
"ypos" property"ypos" gint : Read / Write
Vertical chart position in graph grid.
Allowed values: >= 0
Default value: 0