AdvancedHMI Software

General Category => Support Questions => Topic started by: Taka_Y on October 24, 2017, 05:51:12 AM

Title: Chartbysampling DateTime
Post by: Taka_Y on October 24, 2017, 05:51:12 AM
Hi,
I was seting the XValueType DateTime, but only date plot.(see attach)
Past thread seems to be for older version.
Title: Re: Chartbysampling DateTime
Post by: Phrog30 on October 24, 2017, 08:56:08 AM
+1 on this.  This is one item on my to do list to figure out.  I asked Archie the other day, but he's busy on a startup so it may be a little while on an answer.
Title: Re: Chartbysampling DateTime
Post by: Archie on October 24, 2017, 09:57:48 AM
I seem to recall it is something in the ChartArea->Axes->X Axis->LabelStyle

It may be a while before I can check for sure, but I would Google ".net chart axis labelstyle format"
Title: Re: Chartbysampling DateTime
Post by: Taka_Y on October 24, 2017, 09:58:35 AM
Hi Phrog30,
However. he has succeeded in it。Do you know something?

http://advancedhmi.com/forum/index.php?topic=828.msg6494#msg6494
Title: Re: Chartbysampling DateTime
Post by: Phrog30 on October 24, 2017, 10:38:12 AM
Hi Phrog30,
However. he has succeeded in it。Do you know something?

http://advancedhmi.com/forum/index.php?topic=828.msg6494#msg6494

I've only spent a little bit of time, but everything I tried didn't work.  I used Google to search and really didn't have any luck.  Sorry.

James
Title: Re: Chartbysampling DateTime
Post by: Godra on October 24, 2017, 05:15:21 PM
Archie is correct, just missing "Format" at the end of ChartAreas->Axes->X Axis->LabelStyle, and here is the link:

https://www.codeproject.com/Questions/141057/Datetime-in-x-axis-in-MSChart

What works fine for me is: MM-dd-yyyy hh:mm
Title: Re: Chartbysampling DateTime
Post by: Phrog30 on October 24, 2017, 07:09:30 PM
Awesome, thanks for the info. I'm looking forward to trying that out.
Title: Re: Chartbysampling DateTime
Post by: Taka_Y on October 24, 2017, 10:10:26 PM
Dear Everyone,
I got it!
I appreciate your cooperation.