|
produced multiply colored axis |
Posted by multiply colored axis on Jul-23-2014 17:26 |
|
Hi Peter,
I am a newbie to CharDirector, and have a same question with this one on
stackoverflow:
http://stackoverflow.com/questions/20547556/multi-colored-axis-in-chart-director.
the answer on stackoverflow is not clear to me. Is there any simple way to implement it?
would appreciate if give some sample code.
FYI, I am using C++ and main chart is finance chart.
Thx in advance.
Peter. |
Re: produced multiply colored axis |
Posted by Peter Kwan on Jul-24-2014 03:29 |
|
Hi,
I have just tried myself. I started from the original "Finance Chart (1)" sample code. After
adding the last indicator chart to the FinanceChart, I call BaseChart.layout so that I can
call Axis.getTicks to get the ticks on the bottom x-axis. Then I just run a loop to add thick
line segments between the ticks. I have attached the code and the result for your
reference.
Hope this can help.
Regards
Peter Kwan
|
|