Author Topic: Chartbysampling DateTime  (Read 2531 times)

Taka_Y

  • Newbie
  • *
  • Posts: 27
    • View Profile
Chartbysampling DateTime
« 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.
« Last Edit: October 24, 2017, 05:53:34 AM by Taka_Y »

Phrog30

  • Guest
Re: Chartbysampling DateTime
« Reply #1 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.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Chartbysampling DateTime
« Reply #2 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"

Taka_Y

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Chartbysampling DateTime
« Reply #3 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
« Last Edit: October 24, 2017, 10:05:18 AM by Taka_Y »

Phrog30

  • Guest
Re: Chartbysampling DateTime
« Reply #4 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

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Chartbysampling DateTime
« Reply #5 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
« Last Edit: October 24, 2017, 10:53:32 PM by Godra »

Phrog30

  • Guest
Re: Chartbysampling DateTime
« Reply #6 on: October 24, 2017, 07:09:30 PM »
Awesome, thanks for the info. I'm looking forward to trying that out.

Taka_Y

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Chartbysampling DateTime
« Reply #7 on: October 24, 2017, 10:10:26 PM »
Dear Everyone,
I got it!
I appreciate your cooperation.