How to Create Scatter Chart with Lines using .NET

Hello, we have a purchased license.
I see, that in release 21.6 you mentioned issue WORDSNET-21871 - Scatter chart with lines support. I updated library with latest version, but can’t find way to use this feature - only ChartType.Scatter is present in ChartType enum.

@buryginl

Please use the following code example to insert scatter chart into document. Hope this helps you.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

Shape shape = builder.InsertChart(ChartType.Scatter, 432, 252);

Chart chart = shape.Chart;
ChartSeriesCollection seriesColl = chart.Series;

// Delete default generated series.
seriesColl.Clear();

// Adding new series.
ChartSeries series1 = seriesColl.Add("AW Series 1", new double[] { 0.7, 1.8, 2.6 },
    new double[] { 2.7, 3.2, 0.8 });
ChartSeries series2 = seriesColl.Add("AW Series 2", new double[] { 0.5, 1.5, 2.5 },
    new double[] { 3, 1, 2 });

// Make lines visible and set their colors.
series1.Format.Stroke.ForeColor = Color.Blue;
series1.Format.Stroke.Weight = 4;
series1.Marker.Format.Fill.ForeColor = Color.Blue;
series1.Marker.Format.Stroke.ForeColor = Color.Blue;
series1.Marker.Size = 6;
series2.Format.Stroke.ForeColor = Color.Green;
series2.Format.Stroke.Weight = 4;
series2.Marker.Format.Fill.ForeColor = Color.Green;
series2.Marker.Format.Stroke.ForeColor = Color.Green;
series2.Marker.Size = 6;

doc.Save(dir + "ScatterChartLineColorAndWeight.docx");

Thanks for answer, it works.