OpenXml – 如何删除scatterChart中的点之间的线
我使用OpenXml在Excel文件中绘制了一个scatterChart。 点join行。 我怎样才能删除线? 我试过这样做:
ScatterStyle scatterStyle = new ScatterStyle() { Val = ScatterStyleValues.Marker }; scatterchart.AppendChild<ScatterStyle>(scatterStyle);
但是Excel修复文件并将值从ScatterStyleValues.Marker更改回ScatterStyleValues.LineMarker。 请帮帮我。 谢谢
事实certificate,你必须为你的系列添加一个shape属性,并在fill = nofill的地方添加一个大纲。 enter code here
//ChartShapeProperty of series ChartShapeProperties SeriesShapeProperty = new DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties(); DocumentFormat.OpenXml.Drawing.Outline outline = new DocumentFormat.OpenXml.Drawing.Outline(new DocumentFormat.OpenXml.Drawing.NoFill()) { Width = 28575 }; SeriesShapeProperty.Append(outline); scatterChartSeries.Append(SeriesShapeProperty);