Skip to content

Line

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

// Bare minimum
powerPoint.AddSlide(PresentationConstants.SlideLayoutType.BLANK)
.AddChart(CreateDataCellPayload(), new G.LineChartSetting<G.PresentationSetting>());
// Some additional samples
powerPoint.AddSlide(PresentationConstants.SlideLayoutType.BLANK)
.AddChart(CreateDataCellPayload(), new G.LineChartSetting<G.PresentationSetting>()
{
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<G.PresentationSetting> Options

Section titled “LineChartSetting<G.PresentationSetting> Options”

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

PropertyTypeDetails
lineChartDataLabelLineChartDataLabelGeneral Data label option applied for all series
lineChartSeriesSettingsList<LineChartSeriesSetting?>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
lineChartTypesLineChartTypesType of chart
chartAxesOptionsChartAxesOptionsChart axes options

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

PropertyTypeDetails
dataLabelPositionDataLabelPositionValuesData Label placement options.

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

PropertyTypeDetails
lineChartDataLabelLineChartDataLabelData Label Option specific to one series
lineChartLineFormatLineChartLineFormat
lineChartDataPointSettingsList<LineChartDataPointSetting?>TODO
PropertyTypeDetails
transparencyint?
widthint?
outlineCapTypeValuesOutlineCapTypeValues?
outlineLineTypeValuesOutlineLineTypeValues?
beginArrowValuesDrawingBeginArrowValues?
endArrowValuesDrawingEndArrowValues?
dashTypeDrawingPresetLineDashValues?
lineStartWidthLineWidthValues?
lineEndWidthLineWidthValues?