Jump to content
Software FX Community

Plotting points by date


User (Legacy)
 Share

Recommended Posts

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.

--

FP

Software FX

Link to comment
Share on other sites

I should have explained the graph a little more.

I am plotting temperature (y axis) vs. time (x axis). There is a minimum of

24 values/day (1 per hour) and there could be more (although unlikely, one

per second). What do I need to do to have the x axis labels spaced evenly

regardless of the number of points per day? How can I only display one

label per day on the x axis?

I'll look at the examples a little more.

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

news:6ZqOzPlJEHA.272@webserver3.softwarefx.com...

> 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.

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

Also, the user wants to be able to see 1 hour of information or all

information which may be a couple of months.

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

news:6ZqOzPlJEHA.272@webserver3.softwarefx.com...

> 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.

>

> --

> FP

> Software FX

>

>

post-2314-13922398120026_thumb.jpg

Link to comment
Share on other sites

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.

--

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...