Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Displaying a chart in a CScrollView report.

Displaying a chart in a CScrollView report.

Scheduled Pinned Locked Moved C / C++ / MFC
c++algorithmsdata-structuresperformancecareer
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sternocera
    wrote on last edited by
    #1

    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

    C 1 Reply Last reply
    0
    • S 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

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      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++

      S 1 Reply Last reply
      0
      • C Cedric Moonen

        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++

        S Offline
        S Offline
        Sternocera
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups