User (Legacy) Posted March 30, 2004 Report Posted March 30, 2004 I have my chart pretty much set up the way that we want it. The only major thing left is to get the hourly values to be displayed across the X axis. Here is the code that I have in there now... Chart1.AxisX.LabelAngle = 45; Chart1.AxisX.LabelValue = 1; Chart1.AxisX.Step = 12; Chart1.AxisX.LabelsFormat.CustomFormat = "h:mm:ss"; Only problem is that there is only one label that shows up on the chart - the first one. I have attached a copy of it. Thanks, Derek (ChartFX.NET 6.2 in C#)
Software FX Posted March 30, 2004 Report Posted March 30, 2004 The units in the Step are days so 12 means 12 days. If you want 12 hours you must set the step to 0.5 (half a day). -- Regards, JC Software FX Support "Derek Feagin" <ddfeagi@nppd.com> wrote in message news:pJdGYlpFEHA.196@webserver3.softwarefx.com... > I have my chart pretty much set up the way that we want it. The only major > thing left is to get the hourly values to be displayed across the X axis. > Here is the code that I have in there now... > > Chart1.AxisX.LabelAngle = 45; > Chart1.AxisX.LabelValue = 1; > Chart1.AxisX.Step = 12; > Chart1.AxisX.LabelsFormat.CustomFormat = "h:mm:ss"; > > Only problem is that there is only one label that shows up on the chart - > the first one. I have attached a copy of it. > > Thanks, > Derek > > (ChartFX.NET 6.2 in C#) > > >
User (Legacy) Posted March 31, 2004 Author Report Posted March 31, 2004 I was looking for every hour so I set it to .04166666 and it works like a champ! Thanks again! Derek "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:7HwZanrFEHA.196@webserver3.softwarefx.com... > The units in the Step are days so 12 means 12 days. If you want 12 hours you > must set the step to 0.5 (half a day). > > -- > Regards, > > JC > Software FX Support > "Derek Feagin" <ddfeagi@nppd.com> wrote in message > news:pJdGYlpFEHA.196@webserver3.softwarefx.com... > > I have my chart pretty much set up the way that we want it. The only > major > > thing left is to get the hourly values to be displayed across the X axis. > > Here is the code that I have in there now... > > > > Chart1.AxisX.LabelAngle = 45; > > Chart1.AxisX.LabelValue = 1; > > Chart1.AxisX.Step = 12; > > Chart1.AxisX.LabelsFormat.CustomFormat = "h:mm:ss"; > > > > Only problem is that there is only one label that shows up on the chart - > > the first one. I have attached a copy of it. > > > > Thanks, > > Derek > > > > (ChartFX.NET 6.2 in C#) > > > > > > > >
User (Legacy) Posted March 31, 2004 Author Report Posted March 31, 2004 We are using this line to display the time of the event: Chart1.AxisX.LabelsFormat.CustomFormat = "h:mm:ss"; Which is working well be we now have a request to put this in military time... is there a way to do that? Thanks, Derek "Derek Feagin" <ddfeagi@nppd.com> wrote in message news:cQJdpd0FEHA.196@webserver3.softwarefx.com... > I was looking for every hour so I set it to .04166666 and it works like a > champ! > > Thanks again! > Derek > > "SoftwareFX Support" <noreply@softwarefx.com> wrote in message > news:7HwZanrFEHA.196@webserver3.softwarefx.com... > > The units in the Step are days so 12 means 12 days. If you want 12 hours > you > > must set the step to 0.5 (half a day). > > > > -- > > Regards, > > > > JC > > Software FX Support > > "Derek Feagin" <ddfeagi@nppd.com> wrote in message > > news:pJdGYlpFEHA.196@webserver3.softwarefx.com... > > > I have my chart pretty much set up the way that we want it. The only > > major > > > thing left is to get the hourly values to be displayed across the X > axis. > > > Here is the code that I have in there now... > > > > > > Chart1.AxisX.LabelAngle = 45; > > > Chart1.AxisX.LabelValue = 1; > > > Chart1.AxisX.Step = 12; > > > Chart1.AxisX.LabelsFormat.CustomFormat = "h:mm:ss"; > > > > > > Only problem is that there is only one label that shows up on the > chart - > > > the first one. I have attached a copy of it. > > > > > > Thanks, > > > Derek > > > > > > (ChartFX.NET 6.2 in C#) > > > > > > > > > > > > > > >
Software FX Posted March 31, 2004 Report Posted March 31, 2004 We use the .NET framework to format the dates, so for future reference you can check other strings in the MSDN docs, The item is titled "Custom DateTime Format Strings" H hour (0-23) without a trailing zero for single digit hours HH hour (0-23) with a trailing zero for single digit hours -- Regards, JC Software FX Support "Derek Feagin" <ddfeagi@nppd.com> wrote in message news:NUZvzd2FEHA.200@webserver3.softwarefx.com... > We are using this line to display the time of the event: > Chart1.AxisX.LabelsFormat.CustomFormat = "h:mm:ss"; > > Which is working well be we now have a request to put this in military > time... is there a way to do that? > > Thanks, > Derek > > "Derek Feagin" <ddfeagi@nppd.com> wrote in message > news:cQJdpd0FEHA.196@webserver3.softwarefx.com... > > I was looking for every hour so I set it to .04166666 and it works like a > > champ! > > > > Thanks again! > > Derek > > > > "SoftwareFX Support" <noreply@softwarefx.com> wrote in message > > news:7HwZanrFEHA.196@webserver3.softwarefx.com... > > > The units in the Step are days so 12 means 12 days. If you want 12 hours > > you > > > must set the step to 0.5 (half a day). > > > > > > -- > > > Regards, > > > > > > JC > > > Software FX Support > > > "Derek Feagin" <ddfeagi@nppd.com> wrote in message > > > news:pJdGYlpFEHA.196@webserver3.softwarefx.com... > > > > I have my chart pretty much set up the way that we want it. The only > > > major > > > > thing left is to get the hourly values to be displayed across the X > > axis. > > > > Here is the code that I have in there now... > > > > > > > > Chart1.AxisX.LabelAngle = 45; > > > > Chart1.AxisX.LabelValue = 1; > > > > Chart1.AxisX.Step = 12; > > > > Chart1.AxisX.LabelsFormat.CustomFormat = "h:mm:ss"; > > > > > > > > Only problem is that there is only one label that shows up on the > > chart - > > > > the first one. I have attached a copy of it. > > > > > > > > Thanks, > > > > Derek > > > > > > > > (ChartFX.NET 6.2 in C#) > > > > > > > > > > > > > > > > > > > > > > > >
User (Legacy) Posted March 31, 2004 Author Report Posted March 31, 2004 Excellent! Thanks! Derek "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:ereYDq2FEHA.196@webserver3.softwarefx.com... > We use the .NET framework to format the dates, so for future reference you > can check other strings in the MSDN docs, The item is titled "Custom > DateTime Format Strings" > > H hour (0-23) without a trailing zero for single digit hours > HH hour (0-23) with a trailing zero for single digit hours > > -- > Regards, > > JC > Software FX Support > "Derek Feagin" <ddfeagi@nppd.com> wrote in message > news:NUZvzd2FEHA.200@webserver3.softwarefx.com... > > We are using this line to display the time of the event: > > Chart1.AxisX.LabelsFormat.CustomFormat = "h:mm:ss"; > > > > Which is working well be we now have a request to put this in military > > time... is there a way to do that? > > > > Thanks, > > Derek > > > > "Derek Feagin" <ddfeagi@nppd.com> wrote in message > > news:cQJdpd0FEHA.196@webserver3.softwarefx.com... > > > I was looking for every hour so I set it to .04166666 and it works like > a > > > champ! > > > > > > Thanks again! > > > Derek > > > > > > "SoftwareFX Support" <noreply@softwarefx.com> wrote in message > > > news:7HwZanrFEHA.196@webserver3.softwarefx.com... > > > > The units in the Step are days so 12 means 12 days. If you want 12 > hours > > > you > > > > must set the step to 0.5 (half a day). > > > > > > > > -- > > > > Regards, > > > > > > > > JC > > > > Software FX Support > > > > "Derek Feagin" <ddfeagi@nppd.com> wrote in message > > > > news:pJdGYlpFEHA.196@webserver3.softwarefx.com... > > > > > I have my chart pretty much set up the way that we want it. The > only > > > > major > > > > > thing left is to get the hourly values to be displayed across the X > > > axis. > > > > > Here is the code that I have in there now... > > > > > > > > > > Chart1.AxisX.LabelAngle = 45; > > > > > Chart1.AxisX.LabelValue = 1; > > > > > Chart1.AxisX.Step = 12; > > > > > Chart1.AxisX.LabelsFormat.CustomFormat = "h:mm:ss"; > > > > > > > > > > Only problem is that there is only one label that shows up on the > > > chart - > > > > > the first one. I have attached a copy of it. > > > > > > > > > > Thanks, > > > > > Derek > > > > > > > > > > (ChartFX.NET 6.2 in C#) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.