#include <chart.h>
Inheritance diagram for VDKChart:
VDKChart is a component that allows to plot 2D data in various format, is a base class that implements common functionalities to all subclasses actually supported:
VDKChart::VDKChart | ( | VDKForm * | owner, | |
int | w = 100 , |
|||
int | h = 100 | |||
) |
Constructor
owner | ||
w | width | |
h | height |
VDKChart::~VDKChart | ( | ) | [virtual] |
Destructor
virtual int VDKChart::isA | ( | ) | [inline, virtual] |
Returns chart_class
Reimplemented from VDKObject.
Reimplemented in VDKLineChart, VDKScatteredChart, and VDKBarChart.
void VDKChart::AddSeries | ( | Series * | s | ) |
Adds a series to chart
s | series to be added. Series name is checked for unicity, if a match is found <s> will substitute the old series that will be destroyed. So series to be added should be always constructed in the heap with new operator. |
void VDKChart::Clear | ( | ) |
Clears chart destroying all series
Reimplemented from VDKCanvas.
GdkGC* VDKChart::GC | ( | ) | [inline] |
Returns chart gc
void VDKChart::SetColor | ( | VDKRgb | rgb | ) |
Sets drawing color, this affects plottin area only, to change axiz, titles and labels color use Foreground property
void VDKChart::SetLineAttributes | ( | gint | lineWidth, | |
GdkLineStyle | lineStyle, | |||
GdkCapStyle | capStyle, | |||
GdkJoinStyle | joinStyle | |||
) |
Sets line attributes
Plots data,placeholder for subclasses.
p | point to be plotted | |
i | i-th point of the series | |
s | series address |
Reimplemented in VDKLineChart, VDKScatteredChart, and VDKBarChart.
VDKReadWriteValueProp<VDKChart, int> VDKChart::ChartBorder |
Sets/gets char border, this area is left to draw axis, title and labels. Defaults to 20 but a larger border is often better.
VDKReadWriteValueProp<VDKChart, VDKString> VDKChart::Title |
Sets/gets chart title
VDKReadWriteValueProp<VDKChart, VDKString> VDKChart::LabelX |
Sets/gets x axis label
VDKReadWriteValueProp<VDKChart, VDKString> VDKChart::LabelY |
Sets/gets y axis label
VDKReadWriteValueProp<VDKChart, int> VDKChart::LabelXDigits |
Sets get how many decimal digits are displayed int x labels
VDKReadWriteValueProp<VDKChart, int> VDKChart::LabelYDigits |
Sets get how many decimal digits are displayed int y labels