Words (.NET) - Column chart axis X labels text overlapping problem

Hello, I have purchased license.

I am creating column chart with long category values, simplified code example:

var shape = asposeBuilder.InsertChart(ChartType.Column, 300, 300);
var chart = shape.Chart;
chart.Series.Clear();
chart.Series.Add("series1",
    new[] { "toooooooooo loooooooong categooooooooooory", "toooooooooo loooooooong categooooooooooory2" },
    new[] { 4d, 5d });
chart.Series.Add("series2",
    new[] { "toooooooooo loooooooong categooooooooooory", "toooooooooo loooooooong categooooooooooory2" },
     new[] { 6d, 7d });

And I want to enable ‘Text overlap’ option for axis x labels, because long labels reduce chart size. How can I do It?

Expected result: image.png (7.8 KB)

Actual result: image.png (8.1 KB)

@buryginl,

After an initial test with the licensed latest (21.10) version of Aspose.Words for .NET, we were unable to reproduce this problem on our end (see Aspose.Words 21.10 generated output: 21.10.docx (8.5 KB)). So, we suggest you to please upgrade to the latest (21.10) version of Aspose.Words for .NET.

I updated Aspose version to latest, and problem has been partially fixed. However, in this case problem still not fixed:

        var shape = asposeBuilder.InsertChart(ChartType.Column3D, 300, 150);
        var chart = shape.Chart;

        chart.Series.Clear();
        chart.Series.Add("series 1",
            new[] {
                "Toooooooooooooooooo loooooooong categooooooooooooooory 1",
                "Toooooooooooooooooo loooooooong categooooooooooooooory 2",
                "Toooooooooooooooooo loooooooong categooooooooooooooory 3",
                "Toooooooooooooooooo loooooooong categooooooooooooooory 4",
                "Toooooooooooooooooo loooooooong categooooooooooooooory 5",
                "Toooooooooooooooooo loooooooong categooooooooooooooory 6",
            },
            new[] {
                3d,
                double.NaN,
                7d,
                4d,
                5d,
                8d
            });

        chart.Series.Add("series 2",
            new[] {
                "Toooooooooooooooooo loooooooong categooooooooooooooory 1",
                "Toooooooooooooooooo loooooooong categooooooooooooooory 2",
                "Toooooooooooooooooo loooooooong categooooooooooooooory 3",
                "Toooooooooooooooooo loooooooong categooooooooooooooory 4",
                "Toooooooooooooooooo loooooooong categooooooooooooooory 5",
                "Toooooooooooooooooo loooooooong categooooooooooooooory 6",
            },
            new[] {
                double.NaN,
                4d,
                double.NaN,
                10d,
                1d,
                double.NaN
            });

        chart.AxisZ.Hidden = true;

Results for docx and pdf format is different, and in pdf format the chart is collapsed to one point.
Pdf: image.png (6.2 KB)
Docx: image.png (6.6 KB)

@buryginl,

We have logged this problem in our issue tracking system with ID WORDSNET-22843. We will further look into the details of this problem and will keep you updated here on the status of correction. We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-22843) have been fixed in this Aspose.Words for .NET 22.5 update also available on NuGet.