Hi Team,
Please help us with the sample java code to create a line chart in slide with different dash Type.AsposeSlide_DashType.jpg (158.2 KB)
Please find the attached output expected
we are using Aspose slides 18.6
com.aspose
aspose-slides
18.6
jdk16
@natarajnb,
Thank you for contacting support. To change the line dash type of a Line chart, you need using a line format of a chart data series. The following code snippet shows you how to do this:
// Set the dash style for the first line of a Line chart.
var firstSeries = lineChart.getChartData().getSeries().get_Item(0);
firstSeries.getFormat().getLine().setDashStyle(LineDashStyle.Dash);
Useful articles:
Create PowerPoint Presentation Charts
Chart Formatting
API Reference: IChartSeries interface | ILineFormat interface | LineDashStyle class