line graph

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • siddhanta
    New Member
    • Oct 2009
    • 33

    line graph

    hi,
    i have arrays of x and y values to draw a line graph. I dont have any idea regarding graph in c sharp. So, can help from where to proceed.
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    Well, when I need to show a chart or graph, I use Visifire's Chart Control for WPF or Silverlight, depending on which medium I'm using.

    What kind of project is this, a web app or a windows forms app? If it's the latter, I suggest you look into making it a WPF app and trying out the chart control I linked.

    Comment

    • cloud255
      Recognized Expert Contributor
      • Jun 2008
      • 427

      #3
      If you want to draw the graph manually have a look at the System.Drawing. Graphics.DrawCu rve method.

      You will need to combine your two arrays into one array of System.Drawing. Point struct.

      Check this MSDN entry for further information on the Drawing namespace should you require it.

      Comment

      • siddhanta
        New Member
        • Oct 2009
        • 33

        #4
        co ordinates

        hi
        i have a line graph in and i wanna display the co-ordinates of the graph when the mouse cursor is placed at the point on the graph

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #5
          Capture the MouseMove event and display the x,y value of the mouse

          Comment

          • siddhanta
            New Member
            • Oct 2009
            • 33

            #6
            get co-ordinates using mouse hover

            hi,
            how can i display the co-ordinates of the form when the mouse is placed there

            Comment

            • tlhintoq
              Recognized Expert Specialist
              • Mar 2008
              • 3532

              #7
              On the MouseEnter even display the form's .Location property

              Comment

              Working...