📚
OpenXML-Office
v1.x
v1.x
  • Getting Started
  • Introduction
  • Presentation
    • PowerPoint
    • Slide
    • Shape
    • Picture
    • Chart
      • Area
      • Bar
      • Column
      • Line
      • Pie
      • Scatter
      • Combo
      • Waterfall
    • Table
    • Textbox
  • Excel
    • Spreadsheet
    • Worksheet
    • Style
  • LICENSE
Powered by GitBook
On this page
  • Basic Code Sample
  • AreaChartSetting Options
  • AreaChartDataLabel Options
  • AreaChartSeriesSetting Options

Was this helpful?

  1. Presentation
  2. Chart

Area

PreviousChartNextBar

Last updated 1 year ago

Was this helpful?

Add chart method present in slide component or you can replace the chart using shape componenet.

Basic Code Sample

// Bare minimum
powerPoint.AddSlide(PresentationConstants.SlideLayoutType.BLANK)
	.AddChart(CreateDataCellPayload(), new G.AreaChartSetting());
// Some additional samples
powerPoint.AddSlide(PresentationConstants.SlideLayoutType.BLANK)
	.AddChart(CreateDataCellPayload(), new G.AreaChartSetting()
	{
		areaChartTypes = G.AreaChartTypes.STACKED,
		chartAxesOptions = new()
		{
			horizontalFontSize = 20,
			verticalFontSize = 25
		}
	});

AreaChartSetting Options

Contains options details extended from that are specific to area chart.

Property
Type
Details

areaChartDataLabel

General Data label option applied for all series

areaChartSeriesSettings

Data Series specific options are used from the list. The position on the list is matched with the data series position. you can use null to skip a series

areaChartTypes

AreaChartTypes

Type of chart

chartAxesOptions

Chart axes options

AreaChartDataLabel Options

Property
Type
Details

dataLabelPosition

DataLabelPositionValues

Data Label placement options.

AreaChartSeriesSetting Options

areaChartDataLabel

Data Label Option specific to one series

fillColor

string?

Fill color specific to one series

List<?>

Contains options details extended from that are specific to area chart.

Contains options details extended from that are specific to area chart.

AreaChartDataLabel
AreaChartSeriesSetting
AreaChartDataLabel
ChartSetting
ChartDataLabel
ChartSeriesSetting
ChartAxesOptions