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

Message ListMessage List     Post MessagePost Message

  setColourAxis in contourchart for vb6
Posted by akim on Oct-02-2009 10:46
Attachments:
hi peter..

i have code:
'
Call layer.setColorAxis(400, 465, cd.TopCenter, 650, cd.Top).setLinearScale(0, MaxVal / 100)

-the result is "old legend".
-how can i make setColorAxis like "New Legend" ?


AKIM
label.jpg
label2.jpg

  Re: setColourAxis in contourchart for vb6
Posted by Peter Kwan on Oct-02-2009 16:40
Hi akim,

If you are referring to the axis scale and labels, I think you should use log scale, not linear scale. It is because your "new legend" is using a log scale. The scale is from 10 to 1000000. You may use the following code:

Call cAxis.setLogScale2(10, 1000000, Array("10<*super*>1", "10<*super*>2", "10<*super*>3", "10<*super*>4", "10<*super*>5", "10<*super*>6"))
Call cAxis.setLabelStyle("arial.ttf", 10)

or you may use:

Call cAxis.setLogScale2(10, 1000000, Array("10<*yoffset=4*>1", "10<*yoffset=4*>2", "10<*yoffset=4*>3", "10<*yoffset=4*>4", "10<*yoffset=4*>5", "10<*yoffset=4*>6"))

Hope this can help.

Regards
Peter Kwan

  Re: setColourAxis in contourchart for vb6
Posted by akim on Oct-02-2009 17:20
thank you very much peter..
the problem has been solved

thank's