Jump to content
Software FX Community

viewing a specific number of days


User (Legacy)

Recommended Posts

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...