简体   繁体   中英

SSRS pie chart legend

I'm trying to create a legend for my pie chart which includes the category and the %. I want it to look like something below

ABC    5%
ABDE   10%
CJDJD  85%

What I've attempted to try is by using a fixed length amount, ie 15 then I minus it from the length of the category. This figure is then used to add the required number of spaces before the percentages are added.

This however hasn't helped and the percentages are still out of alignment as each character length isn't the same. For example, you can have two words with the same amount of characters, but one word will take up more space than the other.

Does anyone know how I can workout around this.

You can change the font, size, style, and color of legend text on the Font page of the Legend Properties dialog box.

By default, the legend text is not optimized to fit the legend area. To cause the legend text to automatically fit the allocated space, set the AutoFitTextDisabled property to False and set a minimum font size for the MinFontSize property to the lowest font size that you think will be presentable and still allow for legend optimization.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM