Jump to content
Software FX Community

Simple time on X Axis


Recommended Posts

You need to set the LabelsFormat and DataFormat properties, respectively. The LabelsFormat property of the x-axis is exposed in both design-time and code-behind but the DataFormat property is only exposed in the code. You can programmatically set this as follows:

 chart1.AxisX.DataFormat.Format = AxisFormat.Time;

chart1.AxisX.DataFormat.CustomFormat =

"HH:mm";chart1.AxisX.LabelsFormat.Format = AxisFormat.Time;

chart1.AxisX.LabelsFormat.CustomFormat =

Link to comment
Share on other sites

Which free version are you using? ChartFX Lite for .NET? If so, please note that this version of ChartFX is very limited and as you already know, does not have all of the features that the full version has.

I recommend you download a trial for ChartFX for Visual Studio 2005 if you're actually intending to use this product.

In your version of ChartFX, the Axis Class exposes the LabelsFormat Property, and the ValueFormat Class exposes both the Format and the CustomFormat properties, respectively. Unfortunately, in this version of ChartFX, the Format Enumerator only has values for None, Number, and Currency.

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.

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.

  • Create New...