CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2012
    Posts
    18

    How to mark a threshold on the graph??

    sEE THE ATTACHMENT:

    This is my graph:GRAPH

    This is what I want:GRAPH1
    How do I do so?
    Attached Files Attached Files
    Last edited by Pearls; April 14th, 2012 at 12:11 AM. Reason: iNCOMPLETE DATA

  2. #2
    Join Date
    Jun 2011
    Location
    Buenos Aires, Argentina
    Posts
    130

    Re: How to mark a threshold on the graph??

    ChartAreas have Cursors, but I'm not sure you can set them to what you need.

    A second less elegant option is to add a new series, set it as Line, add a new Legend to the chartArea, add the second threshold series to that legend and disable that legend so that it is not visible (unless of course you don't mind (or want) to have the threshold series visible in a legend). Set the series to have two values, at [x-min, y-threshold] and [x-max, y-threshold], set it's color and bordersize as needed.

    Perhaps not the most elegant solution, but it does the job. On the good side, it would allow you to add a threshold line with different y-values along the x-axis.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured