anahnarciso
anahnarciso

Reputation: 407

SSRS: Define custom X axis position on bar chart

I have two separate bar charts but I want both to have the same X axis position. That is, I need both horizontal axis to be at the same height.

Both charts have the same height, using the properties:

axis position (See the blue arrow)

Software: SSRS 2008R2 (Microsoft Reporting Services)

Thanks in advance.

Upvotes: 2

Views: 5113

Answers (1)

Ian Preston
Ian Preston

Reputation: 39586

You can work with this by using the Chart Area -> CustomInnerPlotPosition and CustomPosition values.

I have replicated your issue with a couple of side by side charts. In Design:

enter image description here

And preview:

enter image description here

You can see these don't line up, just like yours.

However, if I set the CustomInnerPlotPosition values for Height and Top to be the same for both Charts' Chart Areas, now the bars match in location and height:

enter image description here

enter image description here

You will need to tweak the values for your specific setup.

Doug Lane's excellent article Fit Chart Labels Perfectly in Reporting Services has much more information on these properties.

Upvotes: 2

Related Questions