Overlapping between data label values

Hey there,

I am working on displaying some data as 3D column chart, it really looks nice and good but unfortunately, I faced an issue with the closest values and large numbers kindly check the below code snippet and a screenshot of the exported chart
is there any way to handle this, noting that I am using aspose words with license?
image.png (28.1 KB)

private static void genChart2() throws Exception {
	Document doc = new Document();
	DocumentBuilder builder = new DocumentBuilder(doc);

	// Add a column chart, and then clear its demo data series to start with a clean chart.
	Shape shape = builder.insertChart(ChartType.COLUMN_3_D, 500.0, 300.0);
	Chart chart = shape.getChart();
	chart.getTitle().setText("Daily Attendance");
	LinkedHashMap<String, HashMap<String, Double>> values = new LinkedHashMap<>();
	HashMap<String, Double> periodsMap = new HashMap<>();
	for(int i=1; i<9; i++){
		periodsMap.put("P"+i, 12542.0);	
	values.put("Present", periodsMap);
	HashMap<String, Double> periodsMap1 = new HashMap<>();
	for(int i=1; i<9; i++){
		periodsMap1.put("p"+i, 32542.0);	
	values.put("Absence", periodsMap1);

	HashMap<String, Double> periodsMap2 = new HashMap<>();
	for(int i=1; i<9; i++){
		periodsMap2.put("p"+i, 22542.0);	
	values.put("Late", periodsMap2);
	HashMap<String, Double> periodsMap3 = new HashMap<>();
	for(int i=1; i<9; i++){
		periodsMap3.put("p"+i, 82542.0);	
	values.put("Not Taken", periodsMap3);
	for(Entry<String, HashMap<String, Double>> value: values.entrySet()){
		Set<String> keySet = value.getValue().keySet();
		LinkedList<Double> values2 = new LinkedList<Double>(value.getValue().values());
		double[] periodValues = new double[values2.size()];
		for(int i=0; i<values2.size(); i++){
		String[] periods = new String[keySet.size()];
		ChartSeries series = chart.getSeries().add(value.getKey(), keySet.toArray(periods), periodValues);

		ChartDataLabelCollection labels = series.getDataLabels();
	doc.save("D:\\temp\\Chart2_" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".pdf");	



We have tested the scenario and managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-22571. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@tahir.manzoor, thanks appreciated

Hi @tahir.manzoor, would you please inform me if it is possible to fix the overlap because I am working on something that should be delivered soon.
Thanks a lot


Currently, your issue is under analysis phase. Once we complete the analysis of your issue, we will then be able to provide you an estimate.

1 Like

Thanks for your effort


Please note that Aspose.Words mimics the behavior of MS Word. The label overlap is exactly same with MS Words. So, we have closed this issue (WORDSNET-22571) as ‘Not a Bug’.

1 Like

Thanks @tahir.manzoor