Sample bar chart using wxWidgets

Does anyone have some sample wxWidgets code for displaying a histogram? wxMathPlot seems to work great for my other plotting needs, but now I have a requirement for a histogram.

Not being a UI developer, I am a bit like a fish out of water.

Any suggestions or links are greatly appreciated.

(I would like this to be the dynamic level of the histogram in the frame - this means that I will add values ​​over time, and I want the graph to update.

I found this , but I would rather just use / use the histogram class than draw at the bottom level.

+2


source to share


1 answer


I have not used this myself, so I am not aware of the quality.
Histogram wxFreeChart or wxChart found here seems to be good candidates.
For dynamic updates, you need to take care that the model element informs the view element of changes (for example, via a callback) in the data, so the view knows that it needs to re-draw the diagram.
Hope this helps.



+2


source







All Articles