Hi,
We are using Aspose Java 16.8.0
I have Only one series in the Line chart.in such case modifying following datapoint properties.
for(int i=0;i<serCol.size();i++){
IChartSeries series = serCol.get_Item(i);
IMarker marker = series.getMarker();
marker.setSymbol(MarkerStyleType.Diamond);
marker.getFormat().getFill().setFillType(FillType.Solid);
java.awt.Color markerColor= series.getFormat().getFill().getSolidFillColor().getColor();
marker.getFormat().getFill().getSolidFillColor().setColor(markerColor);
marker.getFormat().getLine().getFillFormat().setFillType(FillType.Solid);
marker.getFormat().getLine().getFillFormat().getSolidFillColor().setColor(markerColor);
marker.setSize(5);
IChartDataPointCollection dtPtCol = series.getDataPoints();
int temp = divideFact;
for(int j=0;j<dtPtCol.size();j++){
IChartDataPoint dataPoint = dtPtCol.get_Item(j);
dataPoint.getLabel().getDataLabelFormat().setPosition(LegendDataLabelPosition.Top);
if(temp==j){
dataPoint.getMarker().setSymbol(MarkerStyleType.None);
dataPoint.getFormat().getFill().setFillType(FillType.NoFill);
dataPoint.getFormat().getLine().getFillFormat().setFillType(FillType.NoFill);
dataPoint = dtPtCol.get_Item(j+1);
dataPoint.getFormat().getFill().setFillType(FillType.NoFill);
dataPoint.getFormat().getLine().getFillFormat().setFillType(FillType.NoFill);
temp+=divideFact+1;
}
}
Here when there is only one series then datapoint legends are shown in the charts instead of series legend.
Please hepl out for this.