Community
Participate
Working Groups
Build Identifier: v20100210-0630 When using a bar chart with the axis flipped so the categories are along the left of the chart, if the labels are too long the chart does not apply an ellipsis to the label, it simply drops the chart. Reproducible: Always Steps to Reproduce: 1. Create a data set that has label values that are really long (60+ characters) 2. Create a bar chart and set the axis to be flipped 3. Set the chart to use the data set 4. Size the chart to use about half the width of the page (may need to vary this based on label values) When you run this chart labels do not display at all. If your chart is sized differently you might get the case where the labels take up most the to space of the chart and the bars themselves are squished to the point that they are illegible. Using the ellipsis setting and/or the label span setting does not seem to have any affect. I think ideally the chart would have a max label width value. Any labels past this length would be truncated but would still display. I see this as slightly different than the label span value as this seems to force a set width all the time for the labels. If all the labels all shorter than the max width the chart should still adjust itself to allocate the remaining space the plot portion.
Created attachment 170211 [details] Birt design file
Created attachment 170212 [details] Flat data set file Note that you will need to update the datasource value to point to the location of the data file.
Can anyone please take a look at this bug? If ellipsis is already working fine when axis are not flipped, I guess it shouldn't be very hard to fix. Thanks.
Any update on this? This is a major issue for Rational Quality Manager 3.0.1. I tried numerous scripting work arounds based on this forum post - none of which worked: http://www.eclipse.org/forums/index.php?t=tree&th=168733&#page_top * Axis label ellipsises have no effect * Fixed label spans cause the label to disappear and prevent the chart from rendering to fill all availabe area (reserved space for labels) * Truncating the labels via beforeDrawAxisLabels works but is done after the charting engine has already allocated space for the labels / chart * Truncating the labels via afterDataSetFilled works but screws up the chart generation because the labels are not matched to the data series
We looked into the behavior of Excel, and found excel limits the max length of axis label can't exceed half of chart width. Now we use the same behavior for our chart, if length of axis label is tool long, chart will truncate the label to half of chart width and add ellipsis in tail automatically.
Verified in daily build 3.7.0.v20110512-0630