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. Zoom in MSCHART and calculate Plot area in Pixels

Zoom in MSCHART and calculate Plot area in Pixels

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
6 Posts 3 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
    sharda bhagwatkar
    wrote on last edited by
    #1

    Hi, I want to zoom in the selected area on MSCHART. The area can be selected through rectangle which will be shown when the mouse moves over MSCHART. Please help me if anyone know how to zoom this area on MSCHART. One method i can think is shifting the selected rect origin to plot origin. For doing this, i will require Plot area in pixels. Thanks.

    C J 2 Replies Last reply
    0
    • S sharda bhagwatkar

      Hi, I want to zoom in the selected area on MSCHART. The area can be selected through rectangle which will be shown when the mouse moves over MSCHART. Please help me if anyone know how to zoom this area on MSCHART. One method i can think is shifting the selected rect origin to plot origin. For doing this, i will require Plot area in pixels. Thanks.

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

      I don't know how you would do that with MSCHART but you can take a look at the link in my sig. I developped a charting control and it has support for manual zoom (with the mouse).

      Cédric Moonen Software developer
      Charting control [v1.4]

      S 1 Reply Last reply
      0
      • C Cedric Moonen

        I don't know how you would do that with MSCHART but you can take a look at the link in my sig. I developped a charting control and it has support for manual zoom (with the mouse).

        Cédric Moonen Software developer
        Charting control [v1.4]

        S Offline
        S Offline
        sharda bhagwatkar
        wrote on last edited by
        #3

        Thanks for reply cedric. I checked your charting tool. But i want to plot the XY scatter graphs. Does you tool provide that. I also want to set all the properties og graph like Axes properities:- color, width ,scale( min, max, major division and minor division), auto scale function, marking data points Graph properties:- plotting points with/ without line connecting them, grid display function, labeling points, toggle title ON/OFF. Please let me know if your chart provide this.

        C 1 Reply Last reply
        0
        • S sharda bhagwatkar

          Thanks for reply cedric. I checked your charting tool. But i want to plot the XY scatter graphs. Does you tool provide that. I also want to set all the properties og graph like Axes properities:- color, width ,scale( min, max, major division and minor division), auto scale function, marking data points Graph properties:- plotting points with/ without line connecting them, grid display function, labeling points, toggle title ON/OFF. Please let me know if your chart provide this.

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

          sharda.bhagwatkar wrote:

          But i want to plot the XY scatter graphs

          What do you mean exactly by scatter graphs ? Points with an X and Y value ?

          sharda.bhagwatkar wrote:

          Axes properities:- color, width ,scale( min, max, major division and minor division), auto scale function, marking data points

          Color: yes. Width: no (you mean the width of the axis line ?). Scale: partially (min&max and major division yes, but there's no minor division). Auto scale: yes. What do you mean by "marking data points" ?

          sharda.bhagwatkar wrote:

          plotting points with/ without line connecting them

          If you use two separate series with the same data then yes (one series for the points, one for the line).

          sharda.bhagwatkar wrote:

          grid display function

          You can enable or disable the grid for a specific axis.

          sharda.bhagwatkar wrote:

          labeling points

          No, there's currently no such feature.

          sharda.bhagwatkar wrote:

          toggle title ON/OFF

          Yes. BTW, does MsChart control provide with all those functionalities ? Even for labels on points ? I thought it was not that advanced :doh:

          Cédric Moonen Software developer
          Charting control [v1.4]

          S 1 Reply Last reply
          0
          • C Cedric Moonen

            sharda.bhagwatkar wrote:

            But i want to plot the XY scatter graphs

            What do you mean exactly by scatter graphs ? Points with an X and Y value ?

            sharda.bhagwatkar wrote:

            Axes properities:- color, width ,scale( min, max, major division and minor division), auto scale function, marking data points

            Color: yes. Width: no (you mean the width of the axis line ?). Scale: partially (min&max and major division yes, but there's no minor division). Auto scale: yes. What do you mean by "marking data points" ?

            sharda.bhagwatkar wrote:

            plotting points with/ without line connecting them

            If you use two separate series with the same data then yes (one series for the points, one for the line).

            sharda.bhagwatkar wrote:

            grid display function

            You can enable or disable the grid for a specific axis.

            sharda.bhagwatkar wrote:

            labeling points

            No, there's currently no such feature.

            sharda.bhagwatkar wrote:

            toggle title ON/OFF

            Yes. BTW, does MsChart control provide with all those functionalities ? Even for labels on points ? I thought it was not that advanced :doh:

            Cédric Moonen Software developer
            Charting control [v1.4]

            S Offline
            S Offline
            sharda bhagwatkar
            wrote on last edited by
            #5

            What do you mean exactly by scatter graphs ? Points with an X and Y value ? -> Yes, with values X and Y. Color: yes. Width: no (you mean the width of the axis line ?). Scale: partially (min&max and major division yes, but there's no minor division). Auto scale: yes. What do you mean by "marking data points" ? -> Yes, width of axis line. ->axis scale should support -ve values also. -> Marking data points means each point on graph should be highlighte with some symbol like cross, square etc. If you use two separate series with the same data then yes (one series for the points, one for the line). No, i want the functionality in which we can set the property for one series with either lines connecting between points or without line connecting between points. MSCHART control provide all this functionalities. But just Zooming MSCHART i am not able to do it.

            1 Reply Last reply
            0
            • S sharda bhagwatkar

              Hi, I want to zoom in the selected area on MSCHART. The area can be selected through rectangle which will be shown when the mouse moves over MSCHART. Please help me if anyone know how to zoom this area on MSCHART. One method i can think is shifting the selected rect origin to plot origin. For doing this, i will require Plot area in pixels. Thanks.

              J Offline
              J Offline
              jain_sachit
              wrote on last edited by
              #6

              Sharda Did you find any solution to your problem? I am struggling with exactly same problem. Regards Sachit Jain

              Sachit Jain

              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