📚
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
  • LineChartSetting Options
  • LineChartDataLabel Options
  • LineChartSeriesSetting Options
  • LineChartLineFormat Options

Was this helpful?

  1. Presentation
  2. Chart

Line

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

Basic Code Sample

// Bare minimum
owerPoint.AddSlide(PresentationConstants.SlideLayoutType.BLANK)
	.AddChart(CreateDataCellPayload(), new G.LineChartSetting());
// Some additional samples
powerPoint.AddSlide(PresentationConstants.SlideLayoutType.BLANK)
	.AddChart(CreateDataCellPayload(), new G.LineChartSetting()
	{
		lineChartSeriesSettings = new(){
			new(){
				lineChartLineFormat = new(){
					dashType = G.DrawingPresetLineDashValues.DASH_DOT,
					lineColor = "FF0000",
					beginArrowValues= G.DrawingBeginArrowValues.ARROW,
					endArrowValues= G.DrawingEndArrowValues.TRIANGLE,
					lineStartWidth = G.LineWidthValues.MEDIUM,
					lineEndWidth = G.LineWidthValues.LARGE,
					outlineCapTypeValues = G.OutlineCapTypeValues.ROUND,
					outlineLineTypeValues = G.OutlineLineTypeValues.DOUBLE,
					width = 5
				}
			}
		}
	});

LineChartSetting Options

Property
Type
Details

lineChartDataLabel

General Data label option applied for all series

lineChartSeriesSettings

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

lineChartTypes

LineChartTypes

Type of chart

chartAxesOptions

Chart axes options

LineChartDataLabel Options

Property
Type
Details

dataLabelPosition

DataLabelPositionValues

Data Label placement options.

LineChartSeriesSetting Options

Property
Type
Details

lineChartDataLabel

Data Label Option specific to one series

lineChartLineFormat

lineChartDataPointSettings

List<LineChartDataPointSetting?>

TODO

LineChartLineFormat Options

Property
Type
Details

transparency

int?

width

int?

outlineCapTypeValues

OutlineCapTypeValues?

outlineLineTypeValues

OutlineLineTypeValues?

beginArrowValues

DrawingBeginArrowValues?

endArrowValues

DrawingEndArrowValues?

dashType

DrawingPresetLineDashValues?

lineStartWidth

LineWidthValues?

lineEndWidth

LineWidthValues?

PreviousColumnNextPie

Last updated 1 year ago

Was this helpful?

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

List<?>

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

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

LineChartDataLabel
LineChartSeriesSetting
LineChartDataLabel
LineChartLineFormat
ChartSetting
ChartDataLabel
ChartSeriesSetting
ChartAxesOptions