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)
Define position of Labels - Show values outside Axis ranges
frogsoet
Is there any possibility to show all series labels in one line above a bar chart or something like this?
Problem:
I changed the scaling of the Y-Axis of a bar chart to min 105 - max 110 (Format Chart -> Y-Axis -> Scale). There are Y-values which are smaller than 105 and so no bars are shown in the chart. Thats correct, but I want to display the values for instance value "99" for the second day etc.
I tried this function:
function beforeDrawDataPointLabel(dph, label, icsc) {
label.setVisible(true);
}
but with no success.
Playing with (Format Chart -> Value (Y)-Series -> Labels) doesn't work too.
The checkbox "Show values outside Axis ranges" (Format Chart -> Y-Axis -> Scale) doesn't make any difference, is this a bug? I tried it with Birt Designer 2.2 and 2.5.1
Is there any way to show the values above the chart with a javascript function ?
In the picture you see the output, only values are shown which are greater than "105".
Thanks for reading!
Find more posts tagged with
Comments
mwilliams
Hi frogsoet,
So, you want to show the label value in the chart for the values even when they're not visible because they're less than '105', in this example? Am I understanding correctly?
frogsoet
Thank you mwilliams, that you spent a reply to this post!
You understood me correctly. I want label values for bars which are not shown, because they are smaller than the Y-axis scale.
I attached a picture where you can see a report, which is exactly what I need. The picture attached to my first post shows what I only can produce with Birt: a report without labels.
Is there any way in Birt to show all values in one row above the diagramm or to produce a report like I attached?
mwilliams
frogsoet,<br />
<br />
It seems as though there isn't a way to get the label to show if the bar is not in the chart. The label is probably only created if the bar is in the chart, so you can't just make it visible if it doesn't exist. This could be something to request as an enhancement. You can do that at <a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/reportabug.php'>BIRT
: Reporting Bugs and Requesting Enhancements</a>.
frogsoet
I created a bug report under: <a class='bbc_url' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=294182'>https://bugs.eclipse.org/bugs/show_bug.cgi?id=294182</a><br
/>
<br />
Waiting there for an answer, because nothing happens yet.