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

Message ListMessage List     Post MessagePost Message

  getPlotArea.setEdgeWidth
Posted by Dan on Feb-03-2017 22:43
Attachments:
Hi,


It is possible to set the width of the gridlines.

I wonder if I can set the width of the edgeline (blue rect in my attachment),
something like:

getPlotArea.setGridWidth
Skärmavbild 2017-02-03 kl. 15.42.33.png

  Re: getPlotArea.setEdgeWidth
Posted by Peter Kwan on Feb-04-2017 05:22
Hi Dan,

You can set the width of the grid lines using PlotArea.setGridWidth.

The edgeline is more complicated. It can be up to 3 lines overlapped. The top line is usually the axis. The axis width can be set with Axis.setWidth. Only axes that are actually used will the rendered. (So if the right axis is not used, it is not rendered.)

If the axis is not rendered or is transparent, the line below, which is the plot area frame, will be visible. The plot area frame can have 3D effect (although this style is no longer popular nowadays) and so is not necessarily a line. It can be a wall. It is hard coded to be 1 pixel thick.

If the plot area border is transparent, under the border will can have grid lines (for many charts, the grid lines are configured to start at the same position as the border).

If you need a thick border, one method is to simply add an empty text box at the same position and size as the plot area, then configure the fill color to be transparent, the border color to be the color you want to use for the border, and to configure the border effect to be "flatBorder" with the given width. See:

http://www.advsofteng.com/doc/cdcom.htm#ChartDirector.API.flatBorder.htm

Hope this can help.

Regards
Peter Kwan