English 中文(简体)
引用错误: 未定义“ 串列易发” 。
原标题:ReferenceError: "BarSeriesImpl" is not defined
  • 时间:2012-05-25 10:14:40
  •  标签:
  • birt

My report works fine in BIRT- it shows some Bar chart graphic. But when I import in some system (IBM maximo) I am getting this error instead of displaying the bar chart:

引用错误 : 未定义“ 串列易发” 。 在图表脚本的第8行 :

我用这个脚本在酒吧图表上显示一些数值。

importPackage( Packages.java.util );
importPackage( Packages.org.eclipse.birt.chart.model.type.impl );


function afterDataSetFilled(series, dataSet, icsc)
{

if( series.getClass() == BarSeriesImpl ){

var inv =
parseInt(icsc.getExternalContext().getScriptable().getPersistentGlobalVariable("IN"));
var outv =
parseInt(icsc.getExternalContext().getScriptable().getPersistentGlobalVariable("OUT"));
var canv =
parseInt(icsc.getExternalContext().getScriptable().getPersistentGlobalVariable("CANCELED"));

var narray1 = new ArrayList( );
narray1.add(inv);
narray1.add(outv);
narray1.add(canv);
dataSet.setValues(narray1);
}else{
var catArray = new ArrayList();
catArray.add("IN");
catArray.add("OUT");
catArray.add("CANCELED");
dataSet.setValues(catArray);
}

}

我要怎么解决这个问题?

谢谢

问题回答

我知道我正在重新提出一个老问题,但我刚注意到这一点,因为它与 另一篇文章 我本周回答。我想你可能错过了 org.eclipse.birt.chart.model.type. type.impl.BarseriesImp, 系统里你正在获取错误信息的信息。我想如果你把BIRT运行时间罐加到lib 路径上, 那么它应该解决错误。





相关问题
How do I enable caching for XML data sets in Birt 2.5

I am building a simple BIRT report using an XML data source. However, I had to use 3 different views (3 cross-tabs) of the same data on the same report. While running the report, I noticed that BIRT ...

BIRT - How to add a dynamic marker?

I have one dataset and create from this set an area chart. In this case no problem. But now I have the requirement to add dynamic markers to the chart. So, this is the example: Data Set: date | ...

在比尔特创造不均的海图间隔

我在书刊中有一个图表,大约80个数据点。 我期望将其分为三个编目:<17-20和>20。 更具体地说,Im试图制作红色黄色绿色图。

user report generation by various attributes

User table contains the following attributes (dateOfBirth, race, gender, ...). We would like to generate a report in the following format. Year Race All Male Female 2000 Asian 2000 1000 1000 ...

BIRT "Target Aggregation Name does not exist"

I m designing an accounting report with various aggregations and data fields and when I try to aggregate on a field I get the following error: "Target Aggregation Name does not exist" Now... the ...

How to do a linear regression into a BIRT report?

How to make a linear regression on the chart displayed into your BIRT report. I have x and y data... but I don t see any function on eclipse BIRT to generate the linear regression... Any idea ? Many ...

热门标签