Friday, 25 July 2014

Cognos 10.2.1 Axis-Label Alignment Problem in Combination Charts

Combination Charts are an excellent tool to show two series of data along the same time line.

We use it to for nearly all our clients to show a Trend Chart consisting of a bar chart at the bottom showing visibility and a line chart above showing tone.

When doing this in Cognos 10.2.1 with FP2 installed (not sure for previous versions) there is a strange bug which messes up the alignment of the axis labels both on the x and the y axis.

In order to reproduce this for IBM Support, as always, I was required to reproduce this on their sample content:

Screenshot-1 - before and after

You will see in the chart on the left that the numbers on the y-axis representing revenue align perfectly with the grid lines. So do the months and years on the y-axis which are in a nested format.

I then go into the properties of this chart and change the Combinations value, adding a Primary Bottom Axis to the Primary Axis, and setting the Primary Axis to a line whilst keeping the Primary Bottom Axis as a bar (Screenshot-2).

Screenshot-2 - properties change


I pull in the same figure of Revenue into the new Series for this example.

As you will see from the chart on the right of Screenshot-1, the number of revenue on both the top and bottom y-axis are now misaligned.

The $0 and $50m labels are above their respective grid lines, $10m is actually aligned okay, and $150m and $200m are both below their grid lines.

Furthermore, if you look at the x-axis, they are also all misaligned now. In fact, the nested labels suddenly change to concatenated as well, but that is a separate issue that I'll put into a new post.

Currently we have found no workaround for this problem, and are awaiting for IBM to get back to us - hopefully with a solution, before too many reports are done in Excel in the meantime...

1 comment: