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

Message ListMessage List     Post MessagePost Message

  Bar Stack Chart Bottom/Top Margin
Posted by Cj Talas on Apr-24-2015 23:58
Attachments:
Hi Peter,

I have a question,
given the enclosed chart. How can i set the top and bottom margin to 10 px.
i want to utilize the entire canvas, and its such a big waste of space if if im not using it.
q1.png

  Re: Bar Stack Chart Bottom/Top Margin
Posted by Peter Kwan on Apr-25-2015 02:58
Hi Cj,

You can configure the axis scale so that there is no margin between your bar and the plot
area border. Assuming your axis is auto-scaled, an example is:

c.yAxis().setAutoScale(0, 0, 0);
c.yAxis().setRounding(false, false);

After that, in setPlotArea, you can configure the plot area size and position to achieve the
margin you need.

Hope this can help.

Regards
Peter Kwan

  Re: Bar Stack Chart Bottom/Top Margin
Posted by Cj Talas on Apr-25-2015 11:11
Attachments:
Hi Peter that did it, thanks!

Regards,
CJ
q2.png