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

Message ListMessage List     Post MessagePost Message

  Adjust Y and X axis
Posted by icm63 on Dec-15-2012 03:33
Attachments:
A standard chart has an X axis of time at the BOTTOM, and a Y axis of value moving from the X,Y intersect to the top of Y , ie 0 to 100

The chart attached is a typical setup

X is time (even tho you dont see it, this chart is a add on xyChart in a finance chart)
Y is price from -0.2 to 1.8. The -0.2 starts at the X,Y intersect (A) and goes to (B).

I would like to do this.

HAVE the X axis at (B), and the Y axis populate price falling down. So that (B) is -0.2 and (A) is 1.8 (noting that 1.8 can grow to 2.0, etc)

Or I guess how do I switch the Y axis upside down, no matter where X is either up or down.

Any ideas..
ScreenHunter_232.png

  Re: Adjust Y and X axis
Posted by icm63 on Dec-16-2012 05:27
Attachments:
Maybe this explains it better

I want to take CHART1 Y axis and invert it like CHART2 (without having to change the data).

How can I do this for an xyChart with the Finance chart.
InverseY.png

  Re: Adjust Y and X axis
Posted by Peter Kwan on Dec-17-2012 21:54
Hi icm63,

You may use Axis.setReverse. For example:

c.yAxis().setReverse()

Hope this can help.

Regards
Peter Kwan

  Re: Adjust Y and X axis
Posted by icm63 on Dec-18-2012 01:35
Thanks worked great !