It seems to me that the only advantage of having separate classes for wxChartPanel and Chart is so that a chart can be completely replaced within an existing wxChartPanel.
However, this really seems to be an unusual case, except for the demo and IMHO introduces an unnecessary extra level of complexity.
It seems to me that the only advantage of having separate classes for wxChartPanel and Chart is so that a chart can be completely replaced within an existing wxChartPanel.
However, this really seems to be an unusual case, except for the demo and IMHO introduces an unnecessary extra level of complexity.