Jump to content

 

Photo

Unsetting AxisMaximum/Minimum


  • Please log in to reply
2 replies to this topic

#1 FredAt

FredAt

    Member

  • Members
  • PipPip
  • 23 posts

Posted 24 January 2011 - 10:18 AM

I am using a Visifire chart to show one of several different types of chart - user toggles between the charts. One of those charts requires the Y axis to be assigned a fixed minimum/maximum value. This is not a problem. chart.AxesY[0].AxisMaxi/Mini mum does the trick. However the trouble starts when I flick back to one of the other charts which should use automatic max/min values. Question 0 how can I reset those values?

#2 vivek

vivek

    Advanced Member

  • Team Visifire
  • PipPipPip
  • 3,588 posts
  • Gender:Male
  • Location:Bangalore

Posted 25 January 2011 - 04:06 AM

Fred,

In order to reset minimum and maximum values of Axis, try setting NaN value in AxisMinimum and AxisMaximum properties.

Example:

chart.AxesY[0].AxisMinimum = Double.NaN;
chart.AxesY[0].AxisMaximum = Double.NaN;

Regards,
Vivek
Team Visifire


#3 FredAt

FredAt

    Member

  • Members
  • PipPip
  • 23 posts

Posted 25 January 2011 - 01:38 PM

Thank you!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users