Hi Justin,
There is only a 3D border width in the ChartDirector API (to configure the width of the raised or depressed bar border), and is it configurable in "Layer.setBorderColor". There is no configurable color border for bars in the ChartDirector API.
For a 2D bar, I have seen people using 3 bars to create a thick border effect:
(a) Create a bar layer with wide bars using the black color. (The bar width can be configured using BarLayer.setBarWidth.)
(b) Create a bar layer with the real bars, narrower than the bars in (a), and put this layer on top of the layer in (a). This will look like the bars having a thick black border on the left and right side.
(c) Create a box-whisker layer with just the "middle line", using the same data as the bar layers, and use a thick line width. The "middle line" will become the top border of the bar.
To put the layers in the correct order - (c) in front, (b) in the middle, and (a) at the back - you may create the layers in the order (c), (b), (a), or use Layer.moveFront to configure the layer order.
Hope this can help.
Regards
Peter Kwan |