Jump to content
Software FX Community

tick marks for 12AM and 12PM only


User (Legacy)
 Share

Recommended Posts

I am using date/time x-values.  Some days I may have 24 points to plot and

other days may be several more. I need to only show tick marks for the

top-of-the hour (ex: 1:00 AM, 2:00 AM).

Let me know if you need more information.

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:yylGdd7KEHA.600@webserver3.softwarefx.com...

> Can you please explain. How is your data, do you have string labels,

> x-values, ?

>

> We need more information than this in order to be able to point you in the

> right direction.

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

My problem is that I might have 24 points one day and 10000 points the next

day. When the number of points changes, the X scaling changes. I want the

graph to look the same regardless of how many points are being plotted.

What am I doing wrong?

Any examples that might help me?

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:V4SQiiHLEHA.600@webserver3.softwarefx.com...

> If you are using an X/Y chart the number of values will not affect the

axis.

>

> Simply set:

>

> chart.Axis(AXIS_X).Step = 1/24.0 ' One Hour

>

> Make sure you adjust your X-Axis Min and Max to also be at the top of the

> hour.

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

If you have x-values (as you said you did) the number of points WILL NOT

affect the layout of the X-Axis. The scale will.

I explained this in a previous posting to you:

"What you want is an X/Y charts. The X-Axis then will be independent of the

number of points and will simply be scaled according to Min and Max, much

like the Y-Axis.

There is samples of X/Y charts in the programmer's guide and Resource

Center. You wan your Date/Time to be your X-Values.

Note that only certain type of charts like Line, Scatter and Area support a

true X-Axis, Bar,Gantt and others support only a categorical axis making the

number of points have a direct effect over where the points are displayed.

For example a bar chart will always displayed bar i right next to bar i-1

regardless of X-Values. X-Values in bar charts are only used for labeling

(Data-Driven labels). You can read more on this in the topic "Data-Driven

Labels" in the programmer's guide."

later ...

"I think my answer was in the right direction. You do seem to need an X/Y

chart (X values are times and Y-Values are temperatures).

Depending on where this data is being acquired from (data base, text file,

xml file, data arrays), the code will vary, take a look in the docs on

"Passing Data". In particular there is a topic under "Programmer's guide ->

Gallery Types" titled "XY Plots & Scatter" that shows you how to pass the

data to an X/Y chart.

You will then need to set the X-Axis format to be Time

(chart.AxisX.LabelsFormat.Format = AxisFormat.Time) and customize further as

you need."

If you still have problems please contact our support dept.

--

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.

 Share

×
×
  • Create New...