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)
how to resolve multiple axis issue
venkatmadh
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
mwilliams
What's the issue? Not all the labels are showing? Have you tried rotating the labels so that more can fit? If this isn't the issue, can you explain a little more. If you can recreate your issue in a way I can run it, that'd be great! Either with the sample database or with a text, xml, or scripted dataSet with your data. Thanks.
venkatmadh
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="98966" data-time="1334341334" data-date="13 April 2012 - 11:22 AM"><p>
What's the issue? Not all the labels are showing? Have you tried rotating the labels so that more can fit? If this isn't the issue, can you explain a little more. If you can recreate your issue in a way I can run it, that'd be great! Either with the sample database or with a text, xml, or scripted dataSet with your data. Thanks.<br /></p></blockquote>
<br />
<br />
<br />
<br />
thanks for reply<br />
<br />
please could you draw same graph for same info, beacause i am unable to place mobile numbers under co_related months<br />
<br />
could give some suggestion on it ,<br />
<br />
<br />
Advanced Thanks