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

Message ListMessage List     Post MessagePost Message

  How to custom the X,Y axis
Posted by Alex on Sep-13-2011 21:43
Hello.
I am a newbie, now i want to develop a 3D graph.
X axis represents the hours(1,2,3....24), there are 24 data
Y axis represents the year(365), there are 365 data, but the Y axis label display use the months(1,2,3....12).

How can i do that, can you give me some suggestion.


Thanks a lot

  Re: How to custom the X,Y axis
Posted by Alex on Sep-13-2011 22:34
The first message is wrong...

Hello.
I am a newbie, now i want to develop a 3D graph.
X axis represents the hours(1,2,3....24), there are 24 data
Y axis represents the year(365), there are 365 data, but the Y axis label display use the months(4,5,6,7,8,9,10,11,12,1,2,3).

How can i do that, can you give me some suggestion.


Thanks a lot

  Re: How to custom the X,Y axis
Posted by Peter Kwan on Sep-14-2011 02:01
Hi Alex,

You can use a date/time axis scale for the y-axis, like (in VB/VBScript):

startDate = DateSerial(2001, 4, 1)
endDate = DateSerial(2002, 3, 31)

Call c.yAxis().setDateScale(startDate, endDate, 30)
Call c.yAxis().setLabelFormat("{value|m}")

For your case, the x-axis is not hours as read using a clock (the hours should be 0 - 23 in a clock, not 1 - 24). If you would like to use 1 - 24, I suggest you treat the x-axis as numbers.

Call c.xAxis().setLinearScale(1, 24, 1)

I am not too sure what type of 3D chart you would like to make. For a typical 3D line chart, the code is like:

Set layer = c.addLineLayer(yDataArray, &H0000ff)
Call layer.setXData(xDataArray)
Call layer.set3D()

If the above is not what you need, would you mind to attach a sample image (or provide a link to an example) to help me understand the type of 3D chart you would like to make?

Regards
Peter Kwan

  Re: How to custom the X,Y axis
Posted by alex on Sep-14-2011 08:40
I want to do the graph like the attached file.
The attached file was customer's demo

  Re: How to custom the X,Y axis
Posted by alex on Sep-14-2011 08:48
graph

  Re: How to custom the X,Y axis
Posted by alex on Sep-14-2011 08:51
I found i can't upload the attached jpg file, can you give me your email address, my addresss is [zfj123589@gmail.com], and i don't know about VB, my language is Java..

  Re: How to custom the X,Y axis
Posted by Peter Kwan on Sep-14-2011 17:33
Hi alex,

Yes. My email address is pkwan@advsofteng.net. Please kindly email me the sample image.

Regards
Peter Kwan