.NET Framework Developer Center > .NET Development Forums > Chart Controls for .NET Framework > How to draw a thresholds(Max and Min) values on y-axis
Ask a questionAsk a question
 

AnswerHow to draw a thresholds(Max and Min) values on y-axis

  • Wednesday, July 01, 2009 8:38 PMkrisg123 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Description of the problem 1:

    I have a line chart with (Major Grid Lines on y-axis horizontally) that needs to be displayed threshold values(MAX and MIN) , these values are comming from the database.
    I have to draw a line for max and min values on y-axis horizontally.
    I tried working out with the StripLines, but the problem is I need to assign the values(Max and Min) dyanamicaly from the database.
    Is there any other alternative that i can work

    any sample code is greatly appreciated.

    And my second problem is, i need to navigate to a Detail Report page when the user clicks on a line chart.
    I worked using series.url ="abc.aspx"; --- its working fine, but the problem is i need to open the page in a new browser with the proper height and width instead of navigating to a another page.

    Any alternate suggestions
    Please give me an example code.

    Thanks in Advance


Answers

All Replies

  • Thursday, July 02, 2009 5:57 AMAlex GorevMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    You can read the values from the database and then set StripLine.IntervalOffset to this value. You can also use HorizontalLine annotation but stripline should be an easier approach.

    Alex.
    http://blogs.msdn.com/alexgor
  • Thursday, July 02, 2009 2:06 PMkrisg123 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks a lot Alex.
    I got it

    And Iam struggling with the second issue now.
    Please give me an idea about this issue below:

    And my second problem is, i need to navigate to a Detail Report page when the user clicks on a line chart.
    I worked using series.url ="abc.aspx"; --- its working fine, but the problem is i need to open the page in a new browser with the proper height and width instead of navigating to a another page.

    Any alternate suggestions
    Please give me an example code.

    Thanks
  • Saturday, July 11, 2009 7:18 PMAlex GorevMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    You need to enter the JavaScript to open a new window of specified size. Check this link: http://www.javascripter.net/faq/openinga.htm

    Alex.
    http://blogs.msdn.com/alexgor