Jump to content
Software FX Community

datetime axis and XY-Plots


User (Legacy)
 Share

Recommended Posts

I have a problem with XY-Plots:

1) I define the X-axis format as af_datetime, but the step that is

automatically generated is not date/time orientated and the default labels

are f.e. 10:42:47 and then 10:51:17 and then 11:01:37 and not 10:40 10:50

11:00 as expected.

I solve this problem by correcting the step after setting the X- and

Y-Values of the points. But how can I detect that the user had zoomed in and

I have to calculate a new step?

2) If the user select the "bar" in the gallery, the labels change to a

date/time outside the selected min/max. When "bar" is not allowed for

XY-Plots, why can the user select it from gallery? I think i cannot use the

Legend property or the label property to set the labels for the x-axis,

because all series have different points on the x axis.

Link to comment
Share on other sites

> 1) I define the X-axis format as af_datetime, but the step that is

> automatically generated is not date/time orientated and the default labels

> are f.e. 10:42:47 and then 10:51:17 and then 11:01:37 and not 10:40 10:50

> 11:00 as expected.

An improved date-time handling is in the works for the next version and

includes features such as this.

> But how can I detect that the user had zoomed in and

> I have to calculate a new step?

You can capture the MouseUp event and Check the Zoom property. Then use

GetScrollView (Axis object) to determine the viewable range.

> When "bar" is not allowed for

> XY-Plots, why can the user select it from gallery? I think i cannot use

the

> Legend property or the label property to set the labels for the x-axis,

> because all series have different points on the x axis.

Bar IGNORES X-Values, but you can still switch to bars from an X/Y chart.

If in your particular case this does not make sense, you can customize the

Gallery command to eliminate the Bar and other Galleries from it. Fro more

information on Customizing commands check the following topic in the docs:

"Programmer's guide - Tool Customization - Working with SubCommands"

--

FP

Software FX, Inc.

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.

 Share

×
×
  • Create New...