User (Legacy) Posted April 19, 2004 Report Share Posted April 19, 2004 Are there any good example of plotting points by date? I may have 24 points one day and 300 points the next day, but I want the graph to show equal spacing for each day. Also, I only want one label per day. I need to be able to show one weeks worth of data on a screen and allow the user to view each prior week. Link to comment Share on other sites More sharing options...
Software FX Posted April 19, 2004 Report Share Posted April 19, 2004 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 More sharing options...
User (Legacy) Posted April 20, 2004 Author Report Share Posted April 20, 2004 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 More sharing options...
User (Legacy) Posted April 20, 2004 Author Report Share Posted April 20, 2004 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 > > Link to comment Share on other sites More sharing options...
Software FX Posted April 21, 2004 Report Share Posted April 21, 2004 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 More sharing options...
Software FX Posted April 21, 2004 Report Share Posted April 21, 2004 One more thing. You need to pass the data that you want to see, all the points that you pass will be displayed. To switch between one our of information to several days you need to repopulate the chart. -- 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.