📚
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 Options
  • AreaChartDataLabel Options
  • AreaChartSeriesSetting Options

Was this helpful?

  1. Spreadsheet
  2. Chart

Area

PreviousChartNextBar

Was this helpful?

Add chart method present in worksheet component. By default the anchor is at 1,1 aka A1 cell.

Basic Code Sample

Worksheet worksheet = excel1.AddSheet("AreaChart");
	worksheet.AddChart(new()
	{
		cellIdStart = "A1",
		cellIdEnd = "D4"
	}, new AreaChartSetting<ExcelSetting>()
	{
		applicationSpecificSetting = new()
		{
			from = new()
			{
				row = 5,
				column = 5
			},
			to = new()
			{
				row = 20,
				column = 20
			}
		}
	});

AreaChartSetting 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
ChartAxesOptions
ChartSetting
ChartDataLabel
ChartSeriesSetting