Circular3DPolygonModule
12 Sep 20255 minutes to read
Represents a 3D polygon in a circular 3D chart.
Methods
applyXLight
Applies a lightening effect to the given color by reducing its red, green, and blue components.
| Parameter | Type | Description |
|---|---|---|
| color | string |
The input color in hexadecimal format. |
| chart | Circular3D |
The circular 3D chart associated with the color. |
Returns string
applyZLight
Applies a lightening effect to the given color by reducing its red, green, and blue components with a focus on the Z-axis.
| Parameter | Type | Description |
|---|---|---|
| color | string |
The input color in hexadecimal format. |
| chart | Circular3D |
The circular 3D chart associated with the color. |
Returns string
calculateNormal
Calculates the normal vector for a 3D polygon based on the provided points.
| Parameter | Type | Description |
|---|---|---|
| args | any[] |
Variable number of vector3D arguments representing points of the polygon. |
Returns void
createPolyline
Creates a 3D polyline by connecting a series of points in 3D space.
Returns Circular3DPolygon
createTextElement
Creates a text element in the context of a circular 3D chart.
| Parameter | Type | Description |
|---|---|---|
| position | Circular3DVector |
The position of the text. |
| element | Circular3DLabelElement |
The text element to be created. |
| xLength | number |
The x value for the text element. |
| yLength | number |
The y value for the text element. |
Returns Circular3DPolygon
draw
Draws a circular 3D polygon on the specified chart.
| Parameter | Type | Description |
|---|---|---|
| panel | Circular3DPolygon |
The polygon to be drawn. |
| chart | Circular3D |
The circular 3D chart on which the polygon is to be drawn. |
Returns void
drawPolyLine
Draws a polyline on the circular 3D chart panel.
| Parameter | Type | Description |
|---|---|---|
| panel | Circular3DPolygon |
The polygon panel on which to draw the polyline. |
| chart | Circular3D |
The circular 3D chart instance. |
Returns void
drawTemplate
Draws text on the specified circular 3D chart panel.
| Parameter | Type | Description |
|---|---|---|
| panel | Circular3DPolygon |
The circular 3D polygon representing the panel on which the text will be drawn. |
| chart | Circular3D |
The circular 3D chart to which the panel belongs. |
Returns void
drawText
Draws a data label symbol for a specific data point in a circular 3D series.
| Parameter | Type | Description |
|---|---|---|
| panel | Circular3DPolygon |
The 3D polygon representing the panel on which the text will be drawn. |
| chart | Circular3D |
The 3D chart to which the panel belongs. |
Returns void
polygon3D
Creates a 3D polygon.
Returns Circular3DPolygon
test
Tests whether the calculated normal vector is valid.
Returns boolean
text3D
Creates a 3D text polygon based on the given label element and points.
| Parameter | Type | Description |
|---|---|---|
| element | Circular3DLabelElement |
The label element associated with the text. |
| points | Circular3DVector[] |
The array of 3D vector points defining the position of the text in 3D space. |
Returns Circular3DPolygon