📚
OpenXML-Office
v3.x (Discontinued)
v3.x (Discontinued)
  • Welcome
    • Getting Started
    • Introduction
    • Privacy Policy
    • License
  • Presentation
    • PowerPoint
    • Slide
    • Shape
    • Picture
    • Textbox
    • Table
    • Chart
      • Area
      • Bar
      • Column
      • Line
      • Pie
      • Scatter
      • Combo
      • Waterfall
  • Spreadsheet
    • Excel
    • Worksheet
    • Shape
    • Picture
    • Table
    • Chart
      • Area
      • Bar
      • Column
      • Line
      • Pie
      • Scatter
      • Combo
    • Style
    • Shared
  • Document
    • Word
    • Pages
    • Shape
    • Picture
    • Table
    • Chart
Powered by GitBook
On this page
  • Basic Code Sample
  • AreaChartSetting<G.PresentationSetting> Options
  • AreaChartDataLabel Options
  • AreaChartSeriesSetting Options

Was this helpful?

  1. Presentation
  2. Chart

Area

PreviousChartNextBar

Was this helpful?

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

Basic Code Sample

using G = OpenXMLOffice.Global_2007;

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

AreaChartSetting<G.PresentationSetting> Options

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

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

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