Top |
Functions
void | gog_series_check_validity () |
GogSeriesElement * | gog_series_get_element () |
GogSeriesFillType | gog_series_get_fill_type () |
GogSeriesFillType | gog_series_get_fill_type_from_combo () |
GogDataset * | gog_series_get_interpolation_params () |
GOData * | gog_series_get_name () |
GList const * | gog_series_get_overrides () |
GogPlot * | gog_series_get_plot () |
unsigned | gog_series_get_xy_data () |
unsigned | gog_series_get_xyz_data () |
gboolean | gog_series_has_legend () |
gboolean | gog_series_is_valid () |
int | gog_series_map_XL_dim () |
unsigned | gog_series_num_elements () |
void | gog_series_populate_fill_type_combo () |
void | gog_series_set_XL_dim () |
void | gog_series_set_dim () |
void | gog_series_set_fill_type () |
void | gog_series_set_index () |
void | gog_series_set_name () |
Properties
gchar * | fill-type | Read / Write |
gboolean | has-legend | Read / Write |
gchar * | interpolation | Read / Write |
gboolean | interpolation-skip-invalid | Read / Write |
gint | index | Read / Write |
Implemented Interfaces
GogSeries implements GOStyledObject and GogDataset.
GogSeriesElement implements GOStyledObject.
Functions
gog_series_check_validity ()
void
gog_series_check_validity (GogSeries *series
);
Updates the is_valid flag for a series. This is an internal utility that should not really be necessary for general usage.
gog_series_get_element ()
GogSeriesElement * gog_series_get_element (GogSeries const *series
,int index
);
gog_series_get_fill_type_from_combo ()
GogSeriesFillType gog_series_get_fill_type_from_combo (GogSeries const *series
,GtkComboBox *combo
);
gog_series_get_interpolation_params ()
GogDataset *
gog_series_get_interpolation_params (GogSeries const *series
);
Only constrained cubic spline interpolation use parameters (for the slopes at each end).
gog_series_get_name ()
GOData *
gog_series_get_name (GogSeries const *series
);
Gets the _source_ of the name associated with the series. NOTE : this is _NOT_ the actual name.
gog_series_get_overrides ()
GList const *
gog_series_get_overrides (GogSeries const *series
);
Overrides are data owning their own style, overriding the series style.
gog_series_get_xy_data ()
unsigned gog_series_get_xy_data (GogSeries const *series
,double const **x
,double const **y
);
gog_series_get_xyz_data ()
unsigned gog_series_get_xyz_data (GogSeries const *series
,double const **x
,double const **y
,double const **z
);
gog_series_populate_fill_type_combo ()
void gog_series_populate_fill_type_combo (GogSeries const *series
,GtkComboBox *combo
);
gog_series_set_XL_dim ()
void gog_series_set_XL_dim (GogSeries *series
,GogMSDimType ms_type
,GOData *val
,GError **err
);
gog_series_set_dim ()
void gog_series_set_dim (GogSeries *series
,int dim_i
,GOData *val
,GError **err
);
Absorbs a ref to val
gog_series_set_fill_type ()
void gog_series_set_fill_type (GogSeries *series
,GogSeriesFillType fill_type
);
gog_series_set_index ()
void gog_series_set_index (GogSeries *series
,int ind
,gboolean is_manual
);
If ind
>= 0 attempt to assign the new index. Auto
indicies (is_manual
== FALSE) will not override the current
index if it is manual. An index
< 0, will reset the index to
automatic and potentially queue a revaluation of the parent
chart's cardinality.
gog_series_set_name ()
void gog_series_set_name (GogSeries *series
,GODataScalar *name_src
,GError **err
);
Absorbs a ref to name_src
.
Types and Values
GogSeriesClass
typedef struct { GogStyledObjectClass base; gboolean has_interpolation; gboolean has_fill_type; GogSeriesFillType const *valid_fill_type_list; GType series_element_type; /* Virtuals */ void (*dim_changed) (GogSeries *series, int dim_i); unsigned (*get_xy_data) (GogSeries const *series, double const **x, double const **y); GogDataset *(*get_interpolation_params) (GogSeries const *series); } GogSeriesClass;
Members
GogStyledObjectClass |
||
supports interpolation. |
||
|
||
GogSeriesFillType const * |
list of supported GogSeriesFillType values. |
|
GType for the series element if supported. |
||
called when data changed for the series. |
||
get X and Y data. |
||
get interpolation parameters if any, only applies to constrained cubic spline interpolation. |
GogSeriesDesc
typedef struct { unsigned style_fields; unsigned num_dim; GogSeriesDimDesc const *dim; } GogSeriesDesc;
GogSeriesDimDesc
typedef struct { char const *name; GogSeriesPriority priority; gboolean is_shared; GogDimType val_type; GogMSDimType ms_type; } GogSeriesDimDesc;
Members
name. |
||
GogSeriesPriority |
priority. |
|
whether the dimension is shared among the series. |
||
GogDimType |
data type. |
|
GogMSDimType |
data type for foreign formats. |
enum GogMSDimType
Data types classed according to what they become when exported to foreign formats.
Members
labels. |
||
values. |
||
categories. |
||
bubble values. |
||
maximum value known by MS, should not occur. |
||
positive erros on first dimension, we made it up. |
||
negative erros on first dimension, we made it up. |
||
positive erros on second dimension, we made it up. |
||
negative erros on second dimension, we made it up |
||
start value, we made it up for dropbars. |
||
end value, we made it up for dropbars. |
||
low value, we made it up for hi-lo. |
||
high value, we made it up for hi-lo. |
||
we made it up for other uses. |
||
we made it up for other uses. |
GogSeriesElementClass
typedef struct { GogStyledObjectClass base; /* Virtuals */ gpointer (*gse_populate_editor) (GogObject *gobj, GOEditor *editor, GOCmdContext *cc); } GogSeriesElementClass;
enum GogSeriesFillType
Members
from origin ox the X-axis. |
||
from the origin of the Y-axis |
||
from the chart bottom. |
||
from the chart left side. |
||
from the chart top. |
||
, from the chart right side. |
||
from the origin (for radar and polar plots). |
||
from the center (for radar and polar plots). |
||
from the edge (for radar and polar plots). |
||
close the series curve and fills it. |
||
from next series. |
||
from X-axis minimum. |
||
from X-axis maximum. |
||
from Y-axis minimum. |
||
from Y-axis maximum. |
||
invalid, should not happen. |
Property Details
The “fill-type”
property
“fill-type” gchar *
How to fill the area.
Flags: Read / Write
Default value: "invalid"
The “has-legend”
property
“has-legend” gboolean
Should the series show up in legends.
Flags: Read / Write
Default value: TRUE
The “interpolation”
property
“interpolation” gchar *
Type of line interpolation.
Flags: Read / Write
Default value: "linear"
The “interpolation-skip-invalid”
property
“interpolation-skip-invalid” gboolean
Should the series interpolation ignore the invalid data.
Flags: Read / Write
Default value: FALSE