How to use script to reverse a chart axis of bubble chart [message #1456321] |
Thu, 30 October 2014 08:33 |
Ankur Kedia Messages: 1 Registered: October 2014 |
Junior Member |
|
|
Hi,
I am new to the forum and BIRT so please pardon my lack of knowledge. I wanted to reverse a chart axis particularly y axis so that it displays from max to 0 . The chart is a bubble chart with y axis showing duration(in sec) and x axis is showing the metric "FCR". Also, the size of bubble is propotional to some other metric "volume" . Can you please help me out?
I followed the tutorial given in: birtworld.blogspot.in/2008/12/birt-reversing-chart-scale.html
However, I am encountering an error in this portion of the script:
function afterDataSetFilled(series, dataSet, icsc)
{
if( series.getSeriesIdentifier() == "series1"){
var list = dataSet.getValues();
for ( i=0; i < list.length; i=i+1)
{
list[i] = gblscale - list[i];
}
}
}
The error is : Cannot convert NaN to org.eclipse.birt.chart.extension.datafeed.BubbleEntry
Thanks in advance!
[Updated on: Thu, 30 October 2014 12:56] by Moderator Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.24869 seconds