User (Legacy) Posted April 21, 2004 Report Share Posted April 21, 2004 If I have 100 days worth of points being plotted as AF_DATETIME, how do I set up the graph to only view 7 days at a time? Link to comment Share on other sites More sharing options...
Software FX Posted April 21, 2004 Report Share Posted April 21, 2004 You mean is a scroll view ? If your chart is an X/Y plot, you do: chart.AxisX.SetScrollView(chart.AxisX.Min,chart.AxisX.Min+100); (this code assumes you have the latest ChartFX 6.2 for .NET) -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted April 21, 2004 Author Report Share Posted April 21, 2004 Yes, in scroll view. Remember, some days may contain 24 points and others may contain more points. I think I need to check how many days the user wants to display and what day they want to start on and only plot those points. Then I could do it without scroll view. The user may only want to display one day worth of information and then they may want to display all information. Giving them a text box to enter the number of days will take care of this. "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:NRWooB9JEHA.3812@webserver3.softwarefx.com... > You mean is a scroll view ? If your chart is an X/Y plot, you do: > > chart.AxisX.SetScrollView(chart.AxisX.Min,chart.AxisX.Min+100); > > (this code assumes you have the latest ChartFX 6.2 for .NET) > > -- > FP > Software FX > > Link to comment Share on other sites More sharing options...
Software FX Posted April 22, 2004 Report Share Posted April 22, 2004 If this is an X/Y chart the number of points is irrelevant, the only thing that matters is the X-Axis range. If this is not an X/Y chart then yes, you will need to count as 100 days may mean more or less points, the X-Axis in a non X/Y chart is categorical so, the SetScrollView is based on number of points, for example: chart.AxisX.SetScrollView(1,100); Will display the first 100 points regardless of what time they're associated with, if there is no X-Values the times are simply string labels that have no value. -- FP Software FX Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.