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

Message ListMessage List     Post MessagePost Message

  Box and Whisker Line Width
Posted by Robert on Jul-24-2009 03:12
Hi, is there a way to set the line width of each part of the box and whisker separately?  I want to make all lines on the Box and whisker line width 10, but I only want to mid-line to be width 2.  Is this possible, or do I have to make them all the same width with the Layer.setLineWidth?

  Re: Box and Whisker Line Width
Posted by Peter Kwan on Jul-25-2009 00:15
Hi Robert,

For a box-whisker layer, the border of the box can only be 1 pixel or 0 pixel (set border color to transparent). There are ways to work around, but it requires additional code.

In the following description, I assume you are using a vertical box-whisker chart (swapXY is not in effect).

For the maxData, minData and minData lines, the line widths are configurable. The vertical center line width is also configurable. All configurable lines in a layer must be of the same width.

If you want different parts of the box-whisker symbol to have different widths, the easiest method is to split them into multiple layers.

For your requirement "mid-line to be width 2", I assume the "mid-line" means the horizontal middle line (the horizontal line inside the box). You may create a box-whisker layer with just a middle line (set all other data arrays to empty), and set the line width to 2. Then you can create another box-whisker layer with boxTop, boxBottom, maxData, minData, but without the midData. You can set the line width of the second box-whisker layer to 10.

Hope this can help.

Regards
Peter Kwan