Please see the sttached Zip file which has the Sample bar chart created in the excel manually.
below is the data I am using to plot the bar charts
input excel the data is there in the excel that I attached.
@mseelam11,
Please share your sample runnable console application (as requested by @Amjad_Sahi also) that can be used to generate the Excel file having the issue as shown in image “Dual-Bar with overlapping issue.png” above. We will reproduce the issue here and share our feedback accordingly.
Also, share your environment details like the operating system, Java version etc. You may ensure that you are using the latest version Aspose.Cells for Java 20.10 in your testing as we rectify issues in the latest versions only.
Please try to use Series.setGapWidth() and Series.setOverlap() methods to set the gap accordingly especially for the second series. See the sample code for your reference, so you may accommodate or update your code accordingly:
e.g. Sample code:
.......
//Plot the second series on second axis line.
Integer obj1 = 150;
short value = obj1.shortValue();
chart.getNSeries().get(1).setGapWidth(value);
Integer obj2 = 0;
short value1 = obj2.shortValue();
chart.getNSeries().get(1).setOverlap(value1);
chart.getNSeries().get(1).setPlotOnSecondAxis(true);