Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Bug or noskilled?
Bug or noskilled? [message #369053] Thu, 23 July 2009 10:06 Go to next message
egau is currently offline egauFriend
Messages: 9
Registered: July 2009
Junior Member
Hello,

I want to set the value of regions of a chart meter at the runtime ( like
the color of series of a normal chart etc. . ) but I don't succeed and
don't really know how to do, I tried things like that :

function beforeDrawSeries( series, isr, icsc )
{
importPackage(Packages.org.eclipse.birt.chart.model.componen t.impl.*);
importPackage(Packages.org.eclipse.birt.chart.model.data.imp l);
importPackage(Packages.org.eclipse.birt.chart.model.attribut e);
importPackage(Packages.org.eclipse.birt.chart.model.attribut e.impl);

var region1 = DialRegion.create();
region1.setEndValue(10);
region1.setStartValue(30);
region1.getFill.set(0,0,0)
isr.getDialRegions().add(region1);
}

Error : ReferenceError: "DialRegion" is not defined at line 27 of chart
script:''


So if you have an idea or an example , I would appreciate.

I'm using BIRT 2.5 .

Regards,
------
Egau on #eclipse-birt
Re: Bug or noskilled? [message #369054 is a reply to message #369053] Thu, 23 July 2009 10:30 Go to previous messageGo to next message
egau is currently offline egauFriend
Messages: 9
Registered: July 2009
Junior Member
Hello again,

Actually you can look at this thread, I made something else (that still
doesn't work ) but you have it in attachment) because I made some mistakes
in the code above.

http://www.birt-exchange.org/forum/designing-birt-reports/16 033-about-meter-charts.html
Re: Bug or noskilled? [message #369055 is a reply to message #369054] Thu, 23 July 2009 15:48 Go to previous messageGo to next message
egau is currently offline egauFriend
Messages: 9
Registered: July 2009
Junior Member
I declared this bug :

https://bugs.eclipse.org/284445
Re: Bug or noskilled? [message #369071 is a reply to message #369055] Mon, 27 July 2009 08:39 Go to previous message
egau is currently offline egauFriend
Messages: 9
Registered: July 2009
Junior Member
I finaly made it.
Previous Topic:How to control the color of line chart?
Next Topic:birt master detail with XML datasource of nested objects
Goto Forum:
  


Current Time: Sun Sep 22 07:52:22 GMT 2024

Powered by FUDForum. Page generated in 0.03889 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top