|
How to add some extra space around a line? |
Posted by Eva on Sep-14-2012 01:42 |
|
Hi Peter,
I added a separation line to my GanttChart that separates some types of bars on the chart. I used the addMark() method. All bars are created with a method chart.addBoxWhiskerLayer2(..).
I would like to add an extra space where the line is (as shown in the included screen shot). What is the simplest way to do it?
Thank you,
Eva
|
Re: How to add some extra space around a line? |
Posted by Peter Kwan on Sep-14-2012 21:40 |
|
Hi Eva,
In your case, I think you may increase the space between the two bars. The easiest method is to add an empty bar in between.
For example, suppose you have 6 bars (the data array has 6 elements). You may instead create 7 bars (the data array has 7 elements). For the empty bar, you may use Chart.NoValue as the data value.
For the axis labels, you may create 7 labels, with the empty position using an empty string "" as the label.
Hope this can help.
Regards
Peter Kwan |
|