ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Finance Chart (2) - How to process DateTime?
Posted by MarkZB on Jun-05-2018 06:59
In NetWinChartsCSharpWinChartsfinance2.cs, the example simulates datetime...

// Set the 1st col to be the timeStamp, starting from Sep 4, 2002, with each row
// representing one day, and counting week days only (jump over Sat and Sun)

I'm unsure how to convert my ACTUAL date time values to timestamp double[]...

Please advise.

  Re: Finance Chart (2) - How to process DateTime?
Posted by Peter Kwan on Jun-05-2018 13:27
Hi MarkZB,

In .NET, the date/time values can be represented as System.DateTime. You can use DateTime[] for your timeStamps. The FinanceChart.setData accepts both DateTime[] and double[] for the timeStamps. See:

http://www.advsofteng.com/doc/cdnet.htm#FinanceChart.setData.htm

Hope this can help.

Regards
Peter Kwan

  Re: Finance Chart (2) - How to process DateTime?
Posted by MarkZB on Jun-05-2018 14:06
Thanks Peter