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

Message ListMessage List     Post MessagePost Message

  Align label in Finance Chart
Posted by Tuyen on Apr-14-2012 18:15
Attachments:
Sorry for my English proficiency is very weak.
How can I align label like in picture(file attachtment)?
Thank very much!
New Picture.jpg

  Re: Align label in Finance Chart
Posted by Peter Kwan on Apr-17-2012 02:55
Hi Tuyen,

As I am not sure of your programming language, I will use Java/C# as an example.

You may try something like:

//your existing addMainChart line
XYChart myMainPriceChart = c.addMainChart(........);

LegendBox b = myMainPriceChart.getLegend();
b.setAlignment(Chart.TopRight);

PlotArea p = myMainPriceChart.getPlotArea();
b.setPos(p.getLeftX() + p.getWidth(), p.getTopY());

Hope this can help.

Regards
Peter Kwan

  Re: Align label in Finance Chart
Posted by Tuyen on Apr-17-2012 23:37
Verry verry good.
Peter, Thanks a lot.

Best Regards
Tuyen