Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Problem showing label value
Migrateduser
Hello,
I have a bar chart in which I want to show the label values when the values are greater than a given value.
I do it like this :
function beforeDrawDataPointLabel( dph, label, icsc )
{
importPackage(Packages.java.util.logging);
var caption=label.getCaption();
var form = new Packages.java.text.DecimalFormat("");
chaine = new String("") ;
chaine=caption.getValue();
temp = form.parse(chaine.replaceAll("\\s",""));
if( Math.floor(temp) > 500 ){
label.setVisible(true);
caption.setValue(temp);
caption.getFont().setSize(8.5);
label.setCaption(caption);
}
}
The problem is that for some reason, when the values are greater than 1000, this doesn't work.
I have logged the failing values, and they look like this : 1? 300. Any idea on how to solve this ?
Thanks
Find more posts tagged with
Comments
There are no comments yet