
차트는 프레젠테이션 중 정보를 제시하는 데 중요한 구성 요소 중 하나입니다. 사실과 수치가 적절하고 일치하는 그래프, 차트 또는 표로 뒷받침될 때, PPT에 제시된 정보는 더 강력하고 영향력 있게 됩니다. 훌륭한 시각적 매력을 제공하는 것 외에도, 이러한 그래프, 차트 또는 표는 귀하의 목표 청중에게 관련 비즈니스 정보를 정리된 방식으로 전달합니다. 이 기사에서는 REST API를 사용하여 PowerPoint에서 차트를 생성하거나 수정하는 방법에 대한 단계에 대해 논의할 것입니다.
정보: Aspose는 프리 PowerPoint to PDF converter를 제공하여 프레젠테이션을 PDF로 변환할 수 있습니다.
PPT에서 차트의 이점
우리는 PPT에서 다양한 그래프, 차트 또는 표로 데이터를 제공함으로써 많은 이점을 얻을 수 있습니다:
- 그래프, 차트, 그림 다이어그램 또는 표는 정보를 간결하고 일관되며 압축된 스타일로 제공합니다. 대상 청중은 데이터의 의미를 빠르게 이해합니다.
- 그들은 단순한 텍스트 콘텐츠보다 시각적으로 더 매력적입니다. 그리고 귀하의 PPT는 그들의 올바른 통합으로 인해 자동으로 더 매력적으로 변합니다.
- 청중은 항상 슬라이드에서 몇 가지 결론을 도출하기를 원하며, 이는 발표의 핵심 결론을 이해하는 데 도움이 됩니다.
- 사실에 대한 평가를 내리는 것은 시각적 모드가 다양한 데이터와 숫자를 비교할 수 있게 해 주기 때문에 더 쉬워집니다.
- 더 많은 말을 할 수 있고, 더 많은 사실들을 간결한 방식으로 수용하고 정리할 수 있습니다. 이것이 바로 PPT의 그래프와 차트의 아름다움입니다.
- 그들은 귀하의 잠재 고객이 다양한 이해 가능한 매개변수에 대한 귀하의 비즈니스의 다양한 세부 사항에 대해 중요한 추론을 할 수 있도록 돕습니다.
PowerPoint 처리 API
Aspose.Slides Cloud 는 PowerPoint 및 OpenOffice 프레젠테이션 파일을 생성하고 조작할 수 있는 REST 기반 API입니다. 최근 출시된 버전에서 새로운 리소스는 도형의 하위 리소스입니다. 이것은 차트 도형에만 작동하며, 차트 계열을 추가, 수정 및 삭제할 수 있게 해줍니다.
차트에 시리즈 추가
POST https://api.aspose.cloud/v3.0/slides/myPresentaion.pptx/slides/1/shapes/1/series?folder=myFolder
Request Body
{ "dataPointType": "OneValue", "dataPoints": [{ "value": 5.5</code> <code>}, { "value": 76</code> <code>}, { "value": 27</code> <code>}] }
string MyAppKey = "xxxxxxxx"; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = "xxxxxxxx"; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
SlidesApi api = new SlidesApi("MyAppSid", "MyAppKey");
OneValueSeries dto = new OneValueSeries();
dto.DataPoints = new List<OneValueChartDataPoint>();
dto.DataPoints.Add(new OneValueChartDataPoint { Value = 5.5 });
dto.DataPoints.Add(new OneValueChartDataPoint { Value = 76 });
dto.DataPoints.Add(new OneValueChartDataPoint { Value = 27 });
PostChartSeriesRequest request = new PostChartSeriesRequest
{
Name = "myPresentaion.pptx",
Folder = "myFolder",
SlideIndex = 1,
ShapeIndex = 1,
Series = dto
};
Chart chart = api.PostChartSeries(request);
Console.WriteLine(chart.Series.Count);
차트 시리즈 업데이트
PUT https://api.aspose.cloud/v3.0/slides/myPresentaion.pptx/slides/1/shapes/1/series/2?folder=myFolder
Request Body
{ "dataPointType": "OneValue", "dataPoints": [{ "value": 5.5</code> <code>}, { "value": 76</code> <code>}, { "value": 27</code> <code>}] }
string MyAppKey = "xxxxxxxx"; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = "xxxxxxxx"; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
SlidesApi api = new SlidesApi("MyAppSid", "MyAppKey");
OneValueSeries dto = new OneValueSeries();
dto.DataPoints = new List<OneValueChartDataPoint>();
dto.DataPoints.Add(new OneValueChartDataPoint { Value = 5.5 });
dto.DataPoints.Add(new OneValueChartDataPoint { Value = 76 });
dto.DataPoints.Add(new OneValueChartDataPoint { Value = 27 });
PutChartSeriesRequest request = new PutChartSeriesRequest
{
Name = "myPresentaion.pptx",
Folder = "myFolder",
SlideIndex = 1,
ShapeIndex = 1,
SeriesIndex = 2,
Series = dto
};
Chart chart = api.PutChartSeries(request);
Console.WriteLine(((OneValueSeries)chart.Series[1]).DataPoints.Count);
차트 시리즈 삭제
DELETE https://api.aspose.cloud/v3.0/slides/myPresentaion.pptx/slides/1/shapes/1/series/2?folder=myFolder
string MyAppKey = "xxxxxxxx"; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = "xxxxxxxx"; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
SlidesApi api = new SlidesApi("MyAppSid", "MyAppKey");
DeleteChartSeriesRequest request = new DeleteChartSeriesRequest
{
Name = "myPresentaion.pptx",
Folder = "myFolder",
SlideIndex = 1,
ShapeIndex = 1,
SeriesIndex = 2
};
Chart chart = api.DeleteChartSeries(request);
Console.WriteLine(chart.Series.Count);
관련 기사
다음 링크를 방문하여 더 알아보는 것을 권장합니다: