Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Disable auto sorting on x-axis
swapnilpingale
<div>Hello,</div>
<div>I am trying to generate a line chart wherein on x- axis i have name of tests and on y-axis i have scores of the tests.</div>
<div>My x-axis is being developed from a list where i have values like <strong>"BOY","PM1","PM2","PM3","PM4","PM5","PM6","PM7","PM8","EOY"</strong></div>
<div>but somehow when chart is generated the order on the x-axis is not as i have in list and it becomes as </div>
<div><strong>"BOY","EOY","PM1","PM2","PM3","PM4","PM5","PM6","PM7","PM8"</strong>. this means the values are getting sorted alphabetically.</div>
<div>Please note i have not specified any sorting while designing the report hence wondering how and where this sorting is happening and how i can stop or disable this as i dont want it to take place.</div>
<div>Please help me as am new to BIRT.</div>
<div>Please refer attachment to see how data is getting plotted on x-axis.</div>
Find more posts tagged with
Comments
JFreeman
<p>What version of BIRT are you using?</p>
<p>Can you provide a sample report that replicates the issue?</p>
<p> </p>
<p>I just tried with a quick sample CSV using the names you provided and I cannot replicate the behavior with a chart set on unsorted.</p>
swapnilpingale
<p>Hi JFreeman,</p>
<p>I am using BIRT 4.4.2.</p>
<p>Attached is my rptdesign file.</p>
<p>Anyone please help me to disable autosorting of labels on x-axis</p>
JFreeman
<p>It looks like the scripting you are using in this report for the data source/set is not working in the version of the example you have attached.</p>
<p> </p>
<p>It appears you may have removed some of the parameters and data sets from the report which is breaking the scripting.</p>
<p>Can you attach a sample we can run that replicates the issue?</p>
swapnilpingale
<p>Hi JFreeman,</p>
<p>Sorry for the delay.</p>
<p>Actually i have not removed any parameters from dataset.All the required parameters are present in dataset.</p>
<p>Anyways i will attach new sample shortly.</p>