Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Legend items overlapping after wrapping
paqman
I apologize if this has already been answered elsewhere. In a line chart, I've noticed legend items do not update their container size when their text wraps. For example, if they wrap twice and end up being 3 lines high, they are placed next to other items as if they were only 1 line high. See attached.
Is this a known issue? I'm guessing there should be a way to update their container size after they have wrapped...?
Thanks for the help!
Find more posts tagged with
Comments
mwilliams
What is your BIRT version? Any way you can recreate the issue in a report I can run and attach it in here? I'll try to help!
paqman
I've attached a quick example - the overlap in this case isn't as bad as what usually seems to happen for the reports we are using in our application though (like in the previous screenshot). We are using BIRT 2.6.
When you use the sample, set the XML Data Source Connection of 'Data Source' to the xml file provided, and everything else should work.
Thanks
mwilliams
What do I put as the parameter values to make it happen?
paqman
Put in quite a few words, something around 30 or 40 characters total. I've included a .rptconfig file in the zip folder with all the parameters filled out to cause it to happen
mwilliams
It looks like you'll have to resize your chart based on the series label values. Or at least increase the inset points for the entries in the legend to make room for the long entries. The issue is simply that you're just running out of room in your chart's specified size.
paqman
I guess the complication is that our reports can have from 1 to 8 series (depending on how many the user specifies) and they can call them whatever they want (between 1 and 100 characters). When they create 1 series and it has a really short name, a very large chart with lots of padding for the legend looks out of place. I guess there are ways to dynamically increase the chart size and padding of the legend based on how many entries there are...?
mwilliams
If you're having the user select the series to display and the name, you should know right away whether to resize the chart and take care of any padding.
paqman
To be clear, the user does not directly use BIRT Designer. They select data through a website and press a button to generate their report. I will definitely look into scripting to accomplish what we need.
mwilliams
Yes, but if you're passing these values that they select or enter through the BIRT context or through parameters, you'll have access to them from the very beginning of generation, so you should be able to decide based on the values they enter into your system that you pass to BIRT what you need to do to the chart to make it readable. Scripting will definitely be in your future on this, I think.
Hope this helps.
paqman
That's correct, they end up coming in as parameters. Definitely about to learn lots more about BIRT scripting!