Displaying a chart in a CScrollView report.
-
Hello, I'm maintaining an application that has a number of fairly simple reports displayed in a CScrollView, that use MFC's print/ print preview facilities, writing to a CDC (device context). I'd like to add some bar charts to the reports, to graph information (generally, how much of something occurred in a specified time period). It would be particularly useful if I could use "stacked" barcharts, where the bar is comprised of more than one type of record, grouped together. I've had excellent results with Cedric Moonen's high speed charting control when I needed this sort of functionality in dialogs (without the "stacked" charts, though). However, even after searching codeproject I'm not aware of any free or commercially available licence that is suitable for the task I've described. It wouldn't have to be explicitly an MFC library, just something that will get the job done. Regards, Sternocera
-
Hello, I'm maintaining an application that has a number of fairly simple reports displayed in a CScrollView, that use MFC's print/ print preview facilities, writing to a CDC (device context). I'd like to add some bar charts to the reports, to graph information (generally, how much of something occurred in a specified time period). It would be particularly useful if I could use "stacked" barcharts, where the bar is comprised of more than one type of record, grouped together. I've had excellent results with Cedric Moonen's high speed charting control when I needed this sort of functionality in dialogs (without the "stacked" charts, though). However, even after searching codeproject I'm not aware of any free or commercially available licence that is suitable for the task I've described. It wouldn't have to be explicitly an MFC library, just something that will get the job done. Regards, Sternocera
Sternocera wrote:
It would be particularly useful if I could use "stacked" barcharts, where the bar is comprised of more than one type of record, grouped together.
I'm not very familiar with stacked bars but if you wish, we can discuss that over mail and see if this is feasible to implement them in the charting control. If I have time and if it is not too long I can add that functionality, otherwise I could still guide you a bit on how to implement them. I plan to add some features to the control, so this could be a nice improvement.
Cédric Moonen Software developer
Charting control [v2.0] OpenGL game tutorial in C++ -
Sternocera wrote:
It would be particularly useful if I could use "stacked" barcharts, where the bar is comprised of more than one type of record, grouped together.
I'm not very familiar with stacked bars but if you wish, we can discuss that over mail and see if this is feasible to implement them in the charting control. If I have time and if it is not too long I can add that functionality, otherwise I could still guide you a bit on how to implement them. I plan to add some features to the control, so this could be a nice improvement.
Cédric Moonen Software developer
Charting control [v2.0] OpenGL game tutorial in C++Hi Cédric, Great work with the charting control. The idea of a "stacked" bar (which is a name I just made up - there may be a better one) is that you can breakdown a bar into multiple sub-bars. Take a look at this image, generated with crystal reports: http://imagebin.ca/view/v2bIgfH5.html Can you think of a way of using you charting control within a CScrollView, writing to a device context? Regards, Sternocera
modified on Friday, October 23, 2009 8:50 AM