2016-06-23 4 views
0

OpenXml을 사용하여 Excel 파일에서 scatterChart를 플롯했습니다. 점은 선으로 결합됩니다. 선을 어떻게 제거 할 수 있습니까?OpenXml - scatterChart에서 점 사이의 선을 제거하는 방법

ScatterStyle scatterStyle = new ScatterStyle() { Val = ScatterStyleValues.Marker }; 
       scatterchart.AppendChild<ScatterStyle>(scatterStyle); 

을하지만 엑셀 복구 파일을 다시 ScatterStyleValues.LineMarker에 ScatterStyleValues.Marker에서 값을 변경 : 나는이 일을 시도. 도와주세요. 감사합니다

답변

1

시리즈에 도형 속성을 추가하고 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); 
관련 문제