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
how to resolve multiple axis issue
Migrateduser
hi
i am very new to birt
i am failing to draw multiple values on x-axes
i am attaching my data and my output
please any one give some suggestion on it to forward on this
I used following script
for that
last = "";
function beforeDrawAxisLabel( axis, label, icsc )
{
importPackage(
Packages.org.eclipse.birt.chart.model.attribute.impl );
importPackage(
Packages.org.eclipse.birt.chart.model.attribute );
if( axis.getType() == AxisType.TEXT_LITERAL ){
var cp =label.getCaption().getValue();
if(cp.substr(0,cp.indexOf("Week",0)) == last ){
label.getCaption().setValue(cp.substr( (cp.length()-7)));
}
else{
label.getCaption().setValue(cp.substr( (cp.length()-7))+"\n\r "+cp.substr(0,cp.indexOf("Week",0)));
}
last = cp.substr(0,cp.substr(0,cp.indexOf("Week",0)+7));
}
}
Advanced Thanks
Find more posts tagged with
Comments
There are no comments yet