Saturday, February 25, 2012

Only apply border to left and right of stacked column bar chart

Hi.

Is it in anyway possible to only add borders to left and right sides of a column in a bar chart.

I can see in the xsl definition schema that style does allow left, right, top, bottom tags. But if i replace the <Default>4.5pt</Default> with left, right, top and bottom and accordingly 4.5pt and None - the result doesnt seem to be any different.

What i need to do is to create columns like this where y is for instance Yellow and b is black, 1 and 2 are to Values (DataPoint in rdl)

2 YYY
2 YYY
2 YYY
2 YYY
2 YYY
1 YBY
1 YBY
1 YBY
1 YBY
1 YBY
1 YBY
1 YBY

I've created this using yellow borders on datapoint 1. But if one is very small - i wont see any of the black part because borders fills entire space.

What i would like is the borders to only be left and right and black fill all space from top to bottom.

Hope there is a way to do this.

Best Regards
Anders

The Dundas chart control only supports borders on all edges, while RDL reportitems support borders on individual edges. The closest you can get in the chart would be to determine the border width based on an expression. (e.g. 3pt vs. 2pt vs. 1pt border width)

-- Robert

|||Ok, thanx for the answer..

I've done it opposite of my first suggestion - i've just put a small dotted black border around the "used" colomn and then the fill color inside.

This way i can make the destinction visually, and get the marked section to actually fill the percentage it should.

But its nice to now that it's not possible to do.

Once again thanks :-)

No comments:

Post a Comment