|
Add a line in Gantt Chart and more |
Posted by Marcelo Camarate on Feb-09-2014 21:51 |
|
Hi,
I created the Gantt chart below following examples in your website, but I didn't found how
to do two things.
The first is how I insert a line outside of the plot area (red arrow). I can create the
horizontal lines using the setTickLength command but I don't know how to add the vertical
line.
The other is how can I insert a margin between the legend and de axis line (gray line).
Can you help me?
Thanks in advance,
Marcelo Camarate
|
Re: Add a line in Gantt Chart and more |
Posted by Peter Kwan on Feb-11-2014 04:15 |
|
Hi Marcelo,
You can use Axis.makeLabelTable to change the axis labels into a CDMLTable. Each label will
then be in a table cell. You can use TextBox.setMargin to configure the margins.
For example, in C#/Java, it is like:
CDMLTable table = c.xAxis().makeLabelTable();
ChartDirector.TextBox tableStyle = table.getStyle();
tableStyle .setMargin(5, 5, 0, 0);
tableStyle .setWidth(100);
tableStyle .setAlignment(Chart.Right);
Hope this can help.
Regards
Peter Kwan |
|