How to add Date as the values in X-Axis

Aug 27, 2013 at 7:42 AM
Hi,
I'm finding it difficult to format the values of X-Axis to Date. Please be kind enough to help me through this.

Hoping for a kind response.

Best Regards,
Mushthaq
Sep 3, 2013 at 1:02 PM
Edited Sep 3, 2013 at 1:04 PM
Hi,

that is easy. You can find many solution your problems in samples
Highcharts chart = new Highcharts(graphName)
.SetXAxis(new XAxis
                {
                    Type = AxisTypes.Datetime,
                }).
etc.
Milan
Sep 12, 2013 at 1:25 PM
The datetime conversion from c# to chart is not correct, how to deal with it?
Sep 17, 2013 at 1:18 PM
pkradioman wrote:
The datetime conversion from c# to chart is not correct, how to deal with it?
I have a same problem a finding solution here and here.

I will send a mail to coordinator of DotNet.Highcharts. Because nobody answered here or on asp.net forum. Check out my threads.

Milan
Coordinator
Oct 24, 2013 at 12:41 PM
Hi,

You can format/convert your .NET DateTime objects to total milliseconds with with the following code:
DotNet.Highcharts.Helpers.Tools.GetTotalMilliseconds(new DateTime(2010, 1, 2))
Is this help you?

Regards,
Vangel