ChartDirector 7.0 (Python Edition)

BarLayer.setRoundedCorners


Usage

setRoundedCorners([ r1 [, r2 [, r3 [, r4 ]]]])

Description

Configures rounded corners for rectangular bars.

A rectangular bar has 4 corners. Two of them are at the base of the bar, while the other two are at the "data end" of the bar. Note that the base of the bar can be any side of the bar, depending on whether the bar is positive or negative, vertical or horizontal.

For the 2 base corners, one of them is at the negative x direction while the other is at the positive x direction. The same applies to the two data end corners.

This method accepts 0, 1, 2 or 4 radius values. The usage of these values depend how many values are provided as follows.

Values ProvidedDescription
0The radii of the data end corners are automatically determined. The radii of the base corners are set to 0.
1The radii of the data end corners are set to the specified value. The radii of the base corners are set to 0.
2The radii of the data end corners are set to the first value. The radii of the base corners are set to the second value.
4The radius of the data end corner at the negative x direction is set to the first value. The radius of the data end corner at the positive x direction is set to the second value. The radius of the base corner at the negative x direction is set to the third value. The radius of the base corner at the positive x direction is set to the fourth value.

Arguments

ArgumentDefaultDescription
r1-0x7fffffffThe first radius. See description above on how this radius value is used.
r2-0x7fffffffThe second radius. See description above on how this radius value is used.
r3-0x7fffffffThe third radius. See description above on how this radius value is used.
r4-0x7fffffffThe fourth radius. See description above on how this radius value is used.

Return Value

None