ChartDirector 7.0 (Python Edition)

BaseChart.setRoundedFrame


Usage

setRoundedFrame([ extColor [, r1 [, r2 [, r3 [, r4 ]]]]])

Description

Sets the border style of the chart to rounded corners.

The underlying drawing surface for a chart is always rectangular. When rounded corners are used, part of the drawing surface (the regions external to the rounded corners) will be outside the chart border. The extColor argument specifies the color to be used for the external regions. Typically, it is set to the same color as the background the container that will be hosting the chart.

For example, in a web page, the extColor may be set to the same color as the web page background.

Arguments

ArgumentDefaultDescription
extColorFFFFFFThe exterior background color.
r110The radius of the top-left rounded corner in pixels.
r2-1The radius of the top-right rounded corner in pixels. -1 means it is the same as the radius of the top-left corner.
r3-1The radius of the bottom-right rounded corner in pixels. -1 means it is the same as the radius of the top-left corner.
r4-1The radius of the bottom-left rounded corner in pixels. -1 means it is the same as the radius of the top-left corner.

Return Value

None