User (Legacy) Posted January 21, 2005 Report Share Posted January 21, 2005 I have a series of data. I have a value and a time. I want to chart it from 9:00 to 17:00. I want a label for each hour. The problem is that I don't know how many points in the series I have. It can be more or less points between hours, but normally one value each minute, so around 60 per hour. How can I build this X-axis automaticly from my values? Link to comment Share on other sites More sharing options...
Software FX Posted January 21, 2005 Report Share Posted January 21, 2005 Simply pass those Date-Time values as X-Values not as labels. As X-Values these times will be understood by Chart FX, as opposed to being treated as strings, and arranged appropriately. See the following topics in the Programmer's guide for more information: ms-help://SFX.ChartFX.62/ResourceCenter1/files/xyplots.htm ms-help://SFX.ChartFX.62/ResourceCenter1/files/SmartLabeling.htm ms-help://SFX.ChartFX.62/ResourceCenter1/files/DataDrivenLabels.htm -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 21, 2005 Author Report Share Posted January 21, 2005 I am using collections. I am using this example: ArrayList series1 = new ArrayList(); ArrayList allCol = new ArrayList(); allCol.Add(series1); ListProvider lstProvider = new ListProvider(allCol); chart1.DataSourceSettings.DataSource = lstProvider; How do I specify the value in the X-axis here? thanks "SoftwareFX Support" <noreply@softwarefx.com> skrev i meddelandet news:wI1g4R8$EHA.3336@webserver3.softwarefx.com... > Simply pass those Date-Time values as X-Values not as labels. > > As X-Values these times will be understood by Chart FX, as opposed to > being treated as strings, and arranged appropriately. > > See the following topics in the Programmer's guide for more information: > > ms-help://SFX.ChartFX.62/ResourceCenter1/files/xyplots.htm > > ms-help://SFX.ChartFX.62/ResourceCenter1/files/SmartLabeling.htm > > ms-help://SFX.ChartFX.62/ResourceCenter1/files/DataDrivenLabels.htm > > -- > FP > Software FX > Link to comment Share on other sites More sharing options...
Software FX Posted January 21, 2005 Report Share Posted January 21, 2005 If one of the ArrayList contains dates (DateTime class not strings), this will happen automatically. -- 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.