Aspose::Cells::Charts::ErrorBar::SetType method

ErrorBar::SetType method

Represents error bar amount type.

void Aspose::Cells::Charts::ErrorBar::SetType(ErrorBarType value)

Examples

Aspose::Cells::Startup();
Workbook wb(u"chart.xlsx");
Chart chart = wb.GetWorksheets().Get(0).GetCharts().Get(0);
Series aseries = chart.GetNSeries().Get(0);
//Sets custom error bar type
aseries.GetYErrorBar().SetType(ErrorBarType::Custom);
aseries.GetYErrorBar().SetPlusValue(u"=Sheet1!A1");
aseries.GetYErrorBar().SetMinusValue(u"=Sheet1!A2");

Aspose::Cells::Cleanup();

See Also