Class ChartPoint

Class ChartPoint

Namespace: Aspose.Cells.Charts
Assembly: Aspose.Cells.dll (25.2.0)

차트에서 시리즈의 단일 포인트를 나타냅니다.

public class ChartPoint

상속

objectChartPoint

상속된 멤버

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

예제


//Workbook 객체 인스턴스화
Workbook workbook = new Workbook();

//첫 번째 워크시트의 참조 얻기
Worksheet worksheet = workbook.Worksheets[0];

//"A1" 셀에 샘플 값 추가
worksheet.Cells["A1"].PutValue(50);

//"A2" 셀에 샘플 값 추가
worksheet.Cells["A2"].PutValue(100);

//"A3" 셀에 샘플 값 추가
worksheet.Cells["A3"].PutValue(150);

//"B1" 셀에 샘플 값 추가
worksheet.Cells["B1"].PutValue(60);

//"B2" 셀에 샘플 값 추가
worksheet.Cells["B2"].PutValue(32);

//"B3" 셀에 샘플 값 추가
worksheet.Cells["B3"].PutValue(50);

//워크시트에 차트 추가
int chartIndex = worksheet.Charts.Add(ChartType.PieExploded, 5, 0, 25, 10);

//새로 추가된 차트의 인스턴스에 접근
Chart chart = worksheet.Charts[chartIndex];

//"A1" 셀에서 "B3" 셀까지의 범위를 차트에 NSeries(차트 데이터 소스)로 추가
chart.NSeries.Add("A1:B3", true);

//데이터 레이블 표시 
chart.NSeries[0].DataLabels.ShowValue = true;

for (int i = 0; i  < chart.NSeries[0].Points.Count; i++)
{
    //데이터 포인트 가져오기
    ChartPoint point = chart.NSeries[0].Points[i];
    //파이 폭발 설정
    point.Explosion = 15;
    //테두리 색상 설정
    point.Border.Color = System.Drawing.Color.Red;
}

//Excel 파일 저장
workbook.Save("book1.xls");

'Workbook 객체 인스턴스화
Dim workbook As Workbook = New Workbook()

'첫 번째 워크시트의 참조 얻기
Dim worksheet As Worksheet = workbook.Worksheets(0)

'A1 셀에 샘플  추가
worksheet.Cells("A1").PutValue(50)

'A2 셀에 샘플  추가
worksheet.Cells("A2").PutValue(100)

'A3 셀에 샘플  추가
worksheet.Cells("A3").PutValue(150)

'B1 셀에 샘플  추가
worksheet.Cells("B1").PutValue(60)

'B2 셀에 샘플  추가
worksheet.Cells("B2").PutValue(32)

'B3 셀에 샘플  추가
worksheet.Cells("B3").PutValue(50)

'워크시트에 차트 추가
Dim chartIndex As Integer = worksheet.Charts.Add(ChartType.PieExploded, 5, 0, 25, 10)

'새로 추가된 차트의 인스턴스에 접근
Dim chart As Chart = worksheet.Charts(chartIndex)

'A1 셀에서 B3 셀까지의 범위를 차트에 NSeries(차트 데이터 소스) 추가
chart.NSeries.Add("A1:B3", True)

'데이터 레이블 표시 
chart.NSeries(0).DataLabels.IsValueShown = True

For i As Integer = 0 To chart.NSeries(0).Points.Count - 1
    '데이터 포인트 가져오기
    Dim point As ChartPoint = chart.NSeries(0).Points(i)
    '파이 폭발 설정
    point.Explosion = 15
    '테두리 색상 설정
    point.Border.Color = System.Drawing.Color.Red
Next i

'Excel 파일 저장
workbook.Save("book1.xls")

속성

ArcEndPointXPx

차트의 Chart.Calculate() 메서드를 호출한 후 파이 섹션의 끝 점의 x 좌표를 가져옵니다. 파이 및 도넛 차트에 적용됩니다.

public float ArcEndPointXPx { get; }

속성 값

float

ArcEndPointYPx

차트의 Chart.Calculate() 메서드를 호출한 후 파이 섹션의 끝 점의 y 좌표를 가져옵니다. 파이 및 도넛 차트에 적용됩니다.

public float ArcEndPointYPx { get; }

속성 값

float

ArcStartPointXPx

차트의 Chart.Calculate() 메서드를 호출한 후 파이 섹션의 시작 점의 x 좌표를 가져옵니다. 파이 및 도넛 차트에 적용됩니다.

public float ArcStartPointXPx { get; }

속성 값

float

ArcStartPointYPx

차트의 Chart.Calculate() 메서드를 호출한 후 파이 섹션의 시작 점의 y 좌표를 가져옵니다. 파이 및 도넛 차트에 적용됩니다.

public float ArcStartPointYPx { get; }

속성 값

float

Area

Aspose.Cells.Charts.ChartPoint.Area?text=+영역을 가져옵니다.

public Area Area { get; }

속성 값

Area

Border

Aspose.Cells.Drawing.Line?text=+테두리를 가져옵니다.

public Line Border { get; }

속성 값

Line

BorderWidthPx

차트의 Chart.Calculate() 메서드를 호출한 후 픽셀 단위의 테두리 너비를 가져옵니다.

public int BorderWidthPx { get; }

속성 값

int

DataLabels

이 차트 포인트와 관련된 데이터 레이블을 나타내는 Aspose.Cells.Charts.ChartPoint.DataLabels 객체를 반환합니다.

public DataLabels DataLabels { get; }

속성 값

DataLabels

DoughnutInnerRadius

차트의 Chart.Calculate() 메서드를 호출한 후 도넛 슬라이스의 내부 반경을 픽셀 단위로 가져옵니다. 도넛 차트에 적용됩니다.

public int DoughnutInnerRadius { get; }

속성 값

int

EndAngle

차트의 Chart.Calculate() 메서드를 호출한 후 파이 섹션의 끝 각도를 x축에서 시계 방향으로 측정한 도 단위로 가져옵니다. 파이 차트에 적용됩니다.

public float EndAngle { get; }

속성 값

float

Explosion

파이 차트의 중심에서 열린 파이 슬라이스까지의 거리를 파이 지름의 백분율로 표현합니다.

public int Explosion { get; set; }

속성 값

int

InnerArcEndPointXPx

차트의 Chart.Calculate() 메서드를 호출한 후 도넛 섹션의 끝 점의 x 좌표를 가져옵니다. 도넛 차트에 적용됩니다.

public float InnerArcEndPointXPx { get; }

속성 값

float

InnerArcEndPointYPx

차트의 Chart.Calculate() 메서드를 호출한 후 도넛 섹션의 끝 점의 y 좌표를 가져옵니다. 도넛 차트에 적용됩니다.

public float InnerArcEndPointYPx { get; }

속성 값

float

InnerArcStartPointXPx

차트의 Chart.Calculate() 메서드를 호출한 후 도넛 섹션의 시작 점의 x 좌표를 가져옵니다. 도넛 차트에 적용됩니다.

public float InnerArcStartPointXPx { get; }

속성 값

float

InnerArcStartPointYPx

차트의 Chart.Calculate() 메서드를 호출한 후 도넛 섹션의 시작 점의 y 좌표를 가져옵니다. 도넛 차트에 적용됩니다.

public float InnerArcStartPointYPx { get; }

속성 값

float

IsInSecondaryPlot

이 데이터 포인트가 파이 또는 바 차트의 두 번째 파이 또는 바에 있는지를 나타내는 값을 가져오거나 설정합니다.

public bool IsInSecondaryPlot { get; set; }

속성 값

bool

Marker

Aspose.Cells.Charts.ChartPoint.Marker?text=+마커를 가져옵니다.

public Marker Marker { get; }

속성 값

Marker

RadiusPx

차트의 Chart.Calculate() 메서드를 호출한 후 버블, 파이 또는 도넛의 반경을 픽셀 단위로 가져옵니다.

public int RadiusPx { get; }

속성 값

int

Shadow

차트 포인트에 그림자가 있는 경우 true입니다.

public bool Shadow { get; set; }

속성 값

bool

ShapeHeight

차트의 Chart.Calculate() 메서드를 호출한 후 차트 높이를 1/4000 단위로 가져옵니다.

public int ShapeHeight { get; }

속성 값

int

ShapeHeightPx

차트의 Chart.Calculate() 메서드를 호출한 후 픽셀 단위로 높이를 가져옵니다.

public int ShapeHeightPx { get; }

속성 값

int

ShapeProperties

ChartPoint의 시각적 모양 속성을 보유하는 Aspose.Cells.Drawing.ShapePropertyCollection 객체를 가져옵니다.

public ShapePropertyCollection ShapeProperties { get; }

속성 값

ShapePropertyCollection

ShapeWidth

차트의 Chart.Calculate() 메서드를 호출한 후 차트 너비를 1/4000 단위로 가져옵니다.

public int ShapeWidth { get; }

속성 값

int

ShapeWidthPx

차트의 Chart.Calculate() 메서드를 호출한 후 픽셀 단위로 너비를 가져옵니다.

public int ShapeWidthPx { get; }

속성 값

int

ShapeX

차트의 Chart.Calculate() 메서드를 호출한 후 차트 너비의 1/4000 단위로 왼쪽 상단 모서리의 x 좌표를 가져옵니다.

public int ShapeX { get; }

속성 값

int

ShapeXPx

차트의 Chart.Calculate() 메서드를 호출한 후 픽셀 단위로 왼쪽 상단 모서리의 x 좌표를 가져옵니다.

public int ShapeXPx { get; }

속성 값

int

ShapeY

차트의 Chart.Calculate() 메서드를 호출한 후 차트 높이의 1/4000 단위로 왼쪽 상단 모서리의 y 좌표를 가져옵니다.

public int ShapeY { get; }

속성 값

int

ShapeYPx

차트의 Chart.Calculate() 메서드를 호출한 후 픽셀 단위로 왼쪽 상단 모서리의 y 좌표를 가져옵니다.

public int ShapeYPx { get; }

속성 값

int

StartAngle

차트의 Chart.Calculate() 메서드를 호출한 후 파이 섹션의 시작 각도를 x축에서 시계 방향으로 측정한 도 단위로 가져옵니다. 파이 차트에 적용됩니다.

public float StartAngle { get; }

속성 값

float

XValue

차트 포인트의 X 값을 가져오거나 설정합니다.

public object XValue { get; set; }

속성 값

object

XValueType

차트 포인트의 X 값 유형을 가져옵니다.

public CellValueType XValueType { get; }

속성 값

CellValueType

YValue

차트 포인트의 Y 값을 가져오거나 설정합니다.

public object YValue { get; set; }

속성 값

object

YValueType

차트 포인트의 Y 값 유형을 가져옵니다.

public CellValueType YValueType { get; }

속성 값

CellValueType

메서드

GetBottomPointCount()

차트의 Chart.Calculate() 메서드를 호출한 후 하단 포인트의 수를 가져옵니다.

public int GetBottomPointCount()

반환 값

int

GetBottomPointXPx(int)

차트의 Chart.Calculate() 메서드를 호출한 후 모양의 하단 포인트의 x 좌표를 가져옵니다. 3D 차트에 적용: Column3D, Bar3D, Cone, Cylinder, Pyramid

public float GetBottomPointXPx(int index)

매개변수

index int

반환 값

float

GetBottomPointYPx(int)

차트의 Chart.Calculate() 메서드를 호출한 후 모양의 하단 포인트의 y 좌표를 가져옵니다. 3D 차트에 적용: Column3D, Bar3D, Cone, Cylinder, Pyramid

public float GetBottomPointYPx(int index)

매개변수

index int

반환 값

float

GetOnCategoryAxisPointCount()

차트의 Chart.Calculate() 메서드를 호출한 후 카테고리 축의 포인트 수를 가져옵니다. 면적 차트에만 적용됩니다.

public int GetOnCategoryAxisPointCount()

반환 값

int

비고

2D 면적 차트는 1을 반환합니다.
3D 면적 차트는 2를 반환합니다.

GetOnCategoryAxisPointXPx(int)

차트의 Chart.Calculate() 메서드를 호출한 후 카테고리 축의 포인트의 x 좌표를 가져옵니다. 면적 차트에만 적용됩니다.

public float GetOnCategoryAxisPointXPx(int index)

매개변수

index int

반환 값

float

비고

2D 면적 차트: 인덱스는 0입니다.
3D 면적 차트: 인덱스는 0 또는 1입니다.

GetOnCategoryAxisPointYPx(int)

차트의 Chart.Calculate() 메서드를 호출한 후 카테고리 축의 포인트의 y 좌표를 가져옵니다. 면적 차트에만 적용됩니다.

public float GetOnCategoryAxisPointYPx(int index)

매개변수

index int

반환 값

float

비고

2D 면적 차트: 인덱스는 0입니다.
3D 면적 차트: 인덱스는 0 또는 1입니다.

GetTopPointCount()

차트의 Chart.Calculate() 메서드를 호출한 후 상단 포인트의 수를 가져옵니다.

public int GetTopPointCount()

반환 값

int

GetTopPointXPx(int)

차트의 Chart.Calculate() 메서드를 호출한 후 모양의 상단 포인트의 x 좌표를 가져옵니다. 3D 차트에 적용: Column3D, Bar3D, Cone, Cylinder, Pyramid 및 Area3D

public float GetTopPointXPx(int index)

매개변수

index int

반환 값

float

GetTopPointYPx(int)

차트의 Chart.Calculate() 메서드를 호출한 후 모양의 상단 포인트의 y 좌표를 가져옵니다. 3D 차트에 적용: Column3D, Bar3D, Cone, Cylinder, Pyramid 및 Area3D

public float GetTopPointYPx(int index)

매개변수

index int

반환 값

float

 한국어