api - How do I create a Radar chart in BIRT ? (sample of what I have done in the post) -


I'm trying to make Programmatik a radar chart with BIRT in your app. It seems that there is a lack of BIRT documentation so I (I'm wondering how this can be so popular with so little documentation). I am struggling with it

So my problem is that I do not know the API and the sequence of verb, I have to apply it to the fully integrated chart. All I want to do is bring some data from a DB and show them in a radar chart (like researched people :)

So for now, made a servlet:

  public class chart rendering services http Srvilet {private static final long serial Virsian UID = 1 L; Private ChartEngine ChartGen = Faucet; Private chart chart = null; Private IDeviceRenderer iDeviceRenderer = Faucet; Private IDisplayServer iDisplayServer = null; Private IGenerator iGenerator = Faucet; Private string fontname = "aerial"; Private float size = 10; Personal Boolean bBold = false; Private Boolean Bitallic = False; Private color reflection CD = color deflection example. Black (); / ** * SEE HttpServlet # HttpServlet () * / Public Charter Rating () {super (); // Initial Platform PlatformConfig platformConfig = new PlatformConfig (); PlatformConfig.setProperty ("stadlon", true); // chart making engine chart engine = chartConfig; Eigenerator = chart engineGetenerator (); Try {IDeviceRenderer = chartEngine.getRenderer ("dv.PNG"); IDisplayServer = iDeviceRenderer.getDisplayServer (); } Hold (exception e) {e.printStackTrace (); }} / ** * @see HttpServlet # doGet (HttpServletRequest request, HttpServletResponse response *) * / protected void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {RunTimeContext reference; Chart = chartwightoutximple .create (); Chart.setType ("radar"); Try {// Ready Reference = Generator.Instance (). Ready (chart, empty, empty, ulockel.gate default ()); // bind fee // long id = long.whuf (request.getParameter ("id")); NumberDataSet orthoValues ​​= NumberDataSetImpl.create (new double [] {25, 35, 15, 5, 20}); Radar Series Radar Series = Radar Series Impl. Socket (); RadarSeries.setDataSet (orthoValues); // Red Force Generated ChartState GenerateTestate = Eigenator. Build (iDisplayServer, chart, blank, blank, reference); IGenerator.render (iDeviceRenderer, Generated ChartState); } Grip (Chartered Option E) {e.printStackTrace (); }} / ** * SEE HttpServlet # doPost (HttpServletRequest request, HttpServletResponse response *) * / protected void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {// TODO Auto-generated method stub}}  < / Pre> 

Any help will actually be appriciated, because I do not even know whether it is correct or not.

Thanks a lot,

No,

When developing the BIRT report-driven app, try to pick a high intangible level when coding. I mean, there is no need to code against a low-level API: just Benefit Birt runtime API to directly collect your Arteepeedisain files and application code. I can suggest that, the main API which available the report engine API I use, it will say your development will be faster.

And the nice thing is that, you have a lot of available documentation as it is the most common way of developing a BITT driven app.

Teachus ...

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -