22 vector<ChartSeries> _chartSeries;
27 vector<wstring> _categories;
37 BOOL _showChartTypeToggleButtons;
62 void ReloadLegendValues();
121 void addSeries(
const wstring& seriesName, COLORREF seriesColor);
ChartType
Definition Common.h:173
void setType(const ChartType &chartType)
Sets the chart type to be displayed.
void windowCreated()
Called after the chart window has been created.
BOOL getCreateWindowOptions(wstring &title, UINT &widownStyles, wstring &wndClassName, BOOL &isCustomWndProc)
Retrieves window creation options such as title, style, and class name.
void onWindowResized()
Called when the window is resized.
Chart()
Constructs a new Chart instance.
void setCategories(const vector< wstring > &xAxisValues)
Sets the categories (e.g., x-axis labels) for the chart.
virtual ~Chart()
Destroys the Chart instance.
void onPaint(Graphics *g)
Renders the chart to the given device context.
void onSelectionChanged(const SelectionChangeEvent &ev)
Handles selection change events, typically triggered by user interaction.
void showTypeToggleButtons(BOOL bShow)
Shows or hides chart type toggle buttons.
void addSeriesValue(const wstring &seriesName, double value, COLORREF color)
Adds a value to an existing series.
void addSeries(const wstring &seriesName, COLORREF seriesColor)
Adds a new data series to the chart.
A UI component that displays a legend for chart series.
Definition ChartLegend.h:14
Component()
Constructs a new Component instance.
Definition Graphics.h:161
Definition EventListeners.h:22
Definition EventListeners.h:31