10 #ifndef CATEGORYSIMPLEDATASET_H_ 11 #define CATEGORYSIMPLEDATASET_H_ 13 #include <wx/category/categorydataset.h> 15 #include <wx/dynarray.h> 29 CategorySerie(
const wxString &name,
double *values,
size_t count);
36 const wxString &GetName();
43 double GetValue(
size_t index);
51 WX_DECLARE_USER_EXPORTED_OBJARRAY(
CategorySerie *, CategorySerieArray, WXDLLIMPEXP_FREECHART);
76 void AddSerie(
const wxString &name,
double *values,
size_t count);
87 virtual double GetValue(
size_t index,
size_t serie);
91 virtual wxString
GetName(
size_t index);
98 wxArrayString m_names;
99 CategorySerieArray m_series;
virtual wxString GetName(size_t index)=0
Returns category name at index.
virtual size_t GetSerieCount()=0
Returns serie count in this dataset.
virtual double GetValue(size_t index, size_t serie)=0
Returns value associated with category at index.
Dataset for data values in form [category name, value].
Simple category dataset implementation.
virtual size_t GetCount()=0
Returns category count.
Category serie for CategorySimpleDataset.
virtual wxString GetSerieName(size_t serie)=0
Returns serie name.