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

Message ListMessage List     Post MessagePost Message

  Problem with Dash Line
Posted by Ivan Zhang on Jul-02-2011 05:18
Hello,

First of all thank you for developing this incredible library.

I have been experimenting with FinanceChart library and I ran into some problems trying to
create dash lines. I tried to create a FinanceChart object and make the background black
and the grid dotted lines. So I tried:

FinanceChart *c = new FinanceChart(window_width);
int dash_line = c->dashLineColor(0xdddddd);
c->setPlotAreaStyle(0x000000, dash_line, dash_line, -1, -1);

However when I run the program, the background color is fine but the grid lines are not
drawn. I just wonder what have I done wrong here?

Thank you again.

Ivan

  Re: Problem with Dash Line
Posted by Peter Kwan on Jul-02-2011 18:59
Hi Ivan,

There is a limitation in FinanceChart that you cannot use FinanceChart.setPlotAreaStyle for any color defined using the FinanceChart object. Such colors are valid only for the FinanceChart container (eg. if you add a border for the entire FinanceChart), but not for the XYCharts contained in it.

See the followings for the method to use to make dashed grid lines:

http://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1304866566#N1304966538

Hope this can help.

Regards
Peter Kwan

  Re: Problem with Dash Line
Posted by Ivan Zhang on Jul-06-2011 02:21
This works great! Thank you very much!

Ivan