ChartPoint

ChartPoint class

Represents a single point in a series in a chart.

class ChartPoint;

Methods

MethodDescription
getExplosion()The distance of an open pie slice from the center of the pie chart is expressed as a percentage of the pie diameter.
setExplosion(number)The distance of an open pie slice from the center of the pie chart is expressed as a percentage of the pie diameter.
getShadow()True if the chartpoint has a shadow.
setShadow(boolean)True if the chartpoint has a shadow.
getBorder()Gets the border.
getArea()Gets the area.
getMarker()Gets the marker.
getDataLabels()Returns a DataLabels object that represents the data label associated with this chart point.
getYValueType()Gets Y value type of the chart point.
getXValueType()Gets X value type of the chart point.
getShapeProperties()Gets the ShapePropertyCollection object that holds the visual shape properties of the ChartPoint.
isInSecondaryPlot()Gets or sets a value indicates whether this data points is in the second pie or bar on a pie of pie or bar of pie chart
setIsInSecondaryPlot(boolean)Gets or sets a value indicates whether this data points is in the second pie or bar on a pie of pie or bar of pie chart
getShapeX()Gets the x coordinate of the upper left corner in units of 1/4000 of chart’s width after calls Chart.Calculate() method.
getShapeY()Gets the y coordinate of the upper left corner in units of 1/4000 of chart’s height after calls Chart.Calculate() method.
getShapeWidth()Gets the width in units of 1/4000 of chart’s width after calls Chart.Calculate() method.
getShapeHeight()Gets the height in units of 1/4000 of chart’s height after calls Chart.Calculate() method.
getShapeXPx()Gets the x coordinate of the upper left corner in units of pixels after calls Chart.Calculate() method.
getShapeYPx()Gets the y coordinate of the upper left corner in units of pixels after calls Chart.Calculate() method.
getShapeWidthPx()Gets the width in units of pixels after calls Chart.Calculate() method.
getShapeHeightPx()Gets the height in units of pixels after calls Chart.Calculate() method.
getBorderWidthPx()Gets the width of border in units of pixels after calls Chart.Calculate() method.
getRadiusPx()Gets the radius of bubble, pie or doughnut in units of pixels after calls Chart.Calculate() method.
getDoughnutInnerRadius()Gets the inner radius of doughnut slice in units of pixels after calls Chart.Calculate() method. Applies to Doughnut chart.
getInnerRadiusPx()Gets the inner radius of doughnut slice in units of pixels after calls Chart.Calculate() method. Applies to Doughnut chart.
getStartAngle()Gets the starting angle for the pie section, measured in degrees clockwise from the x-axis after calls Chart.Calculate() method. Applies to Pie chart.
getEndAngle()Gets the ending angle for the pie section, measured in degrees clockwise from the x-axis after calls Chart.Calculate() method. Applies to Pie chart.
getArcStartPointXPx()Gets the x coordinate of starting point for the pie section after calls Chart.Calculate() method. Applies to Pie and Doughnut chart.
getArcStartPointYPx()Gets the y coordinate of starting point for the pie section after calls Chart.Calculate() method. Applies to Pie and Doughnut chart.
getArcEndPointXPx()Gets the x coordinate of ending point for the pie section after calls Chart.Calculate() method. Applies to Pie and Doughnut chart.
getArcEndPointYPx()Gets the y coordinate of ending point for the pie section after calls Chart.Calculate() method. Applies to Pie and Doughnut chart.
getInnerArcStartPointXPx()Gets the x coordinate of starting point for the pie section after calls Chart.Calculate() method. Applies to Doughnut chart.
getInnerArcStartPointYPx()Gets the y coordinate of starting point for the pie section after calls Chart.Calculate() method. Applies to Doughnut chart.
getInnerArcEndPointXPx()Gets the x coordinate of ending point for the pie section after calls Chart.Calculate() method. Applies to Doughnut chart.
getInnerArcEndPointYPx()Gets the y coordinate of ending point for the pie section after calls Chart.Calculate() method. Applies to Doughnut chart.
getTopPointCount()Gets the number of top points after calls Chart.Calculate() method.
getTopPointXPx(number)Gets x-coordinate of the top point of shape after calls Chart.Calculate() method. Applies 3D charts: Column3D, Bar3D, Cone, Cylinder, Pyramid and Area3D
getTopPointYPx(number)Gets y-coordinate of the top point of shape after calls Chart.Calculate() method. Applies 3D charts: Column3D, Bar3D, Cone, Cylinder, Pyramid and Area3D
getBottomPointCount()Gets the number of bottom points after calls Chart.Calculate() method.
getBottomPointXPx(number)Gets x-coordinate of the bottom point of shape after calls Chart.Calculate() method. Applies 3D charts: Column3D, Bar3D, Cone, Cylinder, Pyramid
getBottomPointYPx(number)Gets y-coordinate of the bottom point of shape after calls Chart.Calculate() method. Applies 3D charts: Column3D, Bar3D, Cone, Cylinder, Pyramid
getOnCategoryAxisPointCount()Gets the number of the points on category axis after calls Chart.Calculate() method. Only applies to area chart.
getOnCategoryAxisPointXPx(number)Gets x-coordinate of the point on category axis after calls Chart.Calculate() method. Only applies to Area chart.
getOnCategoryAxisPointYPx(number)Gets y-coordinate of the point on category axis after calls Chart.Calculate() method. Only applies to Area chart.

getExplosion()

The distance of an open pie slice from the center of the pie chart is expressed as a percentage of the pie diameter.

getExplosion() : number;

setExplosion(number)

The distance of an open pie slice from the center of the pie chart is expressed as a percentage of the pie diameter.

setExplosion(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getShadow()

True if the chartpoint has a shadow.

getShadow() : boolean;

setShadow(boolean)

True if the chartpoint has a shadow.

setShadow(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getBorder()

Gets the border.

getBorder() : Line;

Returns

Line

getArea()

Gets the area.

getArea() : Area;

Returns

Area

getMarker()

Gets the marker.

getMarker() : Marker;

Returns

Marker

getDataLabels()

Returns a DataLabels object that represents the data label associated with this chart point.

getDataLabels() : DataLabels;

Returns

DataLabels

getYValueType()

Gets Y value type of the chart point.

getYValueType() : CellValueType;

Returns

CellValueType

getXValueType()

Gets X value type of the chart point.

getXValueType() : CellValueType;

Returns

CellValueType

getShapeProperties()

Gets the ShapePropertyCollection object that holds the visual shape properties of the ChartPoint.

getShapeProperties() : ShapePropertyCollection;

Returns

ShapePropertyCollection

isInSecondaryPlot()

Gets or sets a value indicates whether this data points is in the second pie or bar on a pie of pie or bar of pie chart

isInSecondaryPlot() : boolean;

setIsInSecondaryPlot(boolean)

Gets or sets a value indicates whether this data points is in the second pie or bar on a pie of pie or bar of pie chart

setIsInSecondaryPlot(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getShapeX()

Gets the x coordinate of the upper left corner in units of 1/4000 of chart’s width after calls Chart.Calculate() method.

getShapeX() : number;

getShapeY()

Gets the y coordinate of the upper left corner in units of 1/4000 of chart’s height after calls Chart.Calculate() method.

getShapeY() : number;

getShapeWidth()

Gets the width in units of 1/4000 of chart’s width after calls Chart.Calculate() method.

getShapeWidth() : number;

getShapeHeight()

Gets the height in units of 1/4000 of chart’s height after calls Chart.Calculate() method.

getShapeHeight() : number;

getShapeXPx()

Gets the x coordinate of the upper left corner in units of pixels after calls Chart.Calculate() method.

getShapeXPx() : number;

getShapeYPx()

Gets the y coordinate of the upper left corner in units of pixels after calls Chart.Calculate() method.

getShapeYPx() : number;

getShapeWidthPx()

Gets the width in units of pixels after calls Chart.Calculate() method.

getShapeWidthPx() : number;

getShapeHeightPx()

Gets the height in units of pixels after calls Chart.Calculate() method.

getShapeHeightPx() : number;

getBorderWidthPx()

Gets the width of border in units of pixels after calls Chart.Calculate() method.

getBorderWidthPx() : number;

getRadiusPx()

Gets the radius of bubble, pie or doughnut in units of pixels after calls Chart.Calculate() method.

getRadiusPx() : number;

getDoughnutInnerRadius()

Gets the inner radius of doughnut slice in units of pixels after calls Chart.Calculate() method. Applies to Doughnut chart.

getDoughnutInnerRadius() : number;

getInnerRadiusPx()

Gets the inner radius of doughnut slice in units of pixels after calls Chart.Calculate() method. Applies to Doughnut chart.

getInnerRadiusPx() : number;

Remarks

NOTE: This property is now obsolete. Instead, please use ChartPoint.DoughnutInnerRadius property. This property will be removed 12 months later since June 2024. Aspose apologizes for any inconvenience you may have experienced.

getStartAngle()

Gets the starting angle for the pie section, measured in degrees clockwise from the x-axis after calls Chart.Calculate() method. Applies to Pie chart.

getStartAngle() : number;

getEndAngle()

Gets the ending angle for the pie section, measured in degrees clockwise from the x-axis after calls Chart.Calculate() method. Applies to Pie chart.

getEndAngle() : number;

getArcStartPointXPx()

Gets the x coordinate of starting point for the pie section after calls Chart.Calculate() method. Applies to Pie and Doughnut chart.

getArcStartPointXPx() : number;

getArcStartPointYPx()

Gets the y coordinate of starting point for the pie section after calls Chart.Calculate() method. Applies to Pie and Doughnut chart.

getArcStartPointYPx() : number;

getArcEndPointXPx()

Gets the x coordinate of ending point for the pie section after calls Chart.Calculate() method. Applies to Pie and Doughnut chart.

getArcEndPointXPx() : number;

getArcEndPointYPx()

Gets the y coordinate of ending point for the pie section after calls Chart.Calculate() method. Applies to Pie and Doughnut chart.

getArcEndPointYPx() : number;

getInnerArcStartPointXPx()

Gets the x coordinate of starting point for the pie section after calls Chart.Calculate() method. Applies to Doughnut chart.

getInnerArcStartPointXPx() : number;

getInnerArcStartPointYPx()

Gets the y coordinate of starting point for the pie section after calls Chart.Calculate() method. Applies to Doughnut chart.

getInnerArcStartPointYPx() : number;

getInnerArcEndPointXPx()

Gets the x coordinate of ending point for the pie section after calls Chart.Calculate() method. Applies to Doughnut chart.

getInnerArcEndPointXPx() : number;

getInnerArcEndPointYPx()

Gets the y coordinate of ending point for the pie section after calls Chart.Calculate() method. Applies to Doughnut chart.

getInnerArcEndPointYPx() : number;

getTopPointCount()

Gets the number of top points after calls Chart.Calculate() method.

getTopPointCount() : number;

getTopPointXPx(number)

Gets x-coordinate of the top point of shape after calls Chart.Calculate() method. Applies 3D charts: Column3D, Bar3D, Cone, Cylinder, Pyramid and Area3D

getTopPointXPx(index: number) : number;

Parameters:

ParameterTypeDescription
indexnumber

getTopPointYPx(number)

Gets y-coordinate of the top point of shape after calls Chart.Calculate() method. Applies 3D charts: Column3D, Bar3D, Cone, Cylinder, Pyramid and Area3D

getTopPointYPx(index: number) : number;

Parameters:

ParameterTypeDescription
indexnumber

getBottomPointCount()

Gets the number of bottom points after calls Chart.Calculate() method.

getBottomPointCount() : number;

getBottomPointXPx(number)

Gets x-coordinate of the bottom point of shape after calls Chart.Calculate() method. Applies 3D charts: Column3D, Bar3D, Cone, Cylinder, Pyramid

getBottomPointXPx(index: number) : number;

Parameters:

ParameterTypeDescription
indexnumber

getBottomPointYPx(number)

Gets y-coordinate of the bottom point of shape after calls Chart.Calculate() method. Applies 3D charts: Column3D, Bar3D, Cone, Cylinder, Pyramid

getBottomPointYPx(index: number) : number;

Parameters:

ParameterTypeDescription
indexnumber

getOnCategoryAxisPointCount()

Gets the number of the points on category axis after calls Chart.Calculate() method. Only applies to area chart.

getOnCategoryAxisPointCount() : number;

Remarks

Area 2D chart return 1 Area 3D chart return 2.

getOnCategoryAxisPointXPx(number)

Gets x-coordinate of the point on category axis after calls Chart.Calculate() method. Only applies to Area chart.

getOnCategoryAxisPointXPx(index: number) : number;

Parameters:

ParameterTypeDescription
indexnumber

Remarks

Area 2D chart: index is 0. Area 3D chart: index is 0 or 1.

getOnCategoryAxisPointYPx(number)

Gets y-coordinate of the point on category axis after calls Chart.Calculate() method. Only applies to Area chart.

getOnCategoryAxisPointYPx(index: number) : number;

Parameters:

ParameterTypeDescription
indexnumber

Remarks

Area 2D chart: index is 0. Area 3D chart: index is 0 or 1.