Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6600869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:40:47+00:00 2026-05-25T18:40:47+00:00

I am trying to programmatically create a Radar Chart in my app with BIRT.

  • 0

I am trying to programmatically create a Radar Chart in my app with BIRT. It seems that BIRT lacks documentation so I am struggling with it (I’m wondering how it can be so popular with so little documentation).

So my problem is that I don’t know the API and the sequence of action I have to invoke on it to have a fully integrated Chart. All I want to do is fetch some data from a DB and display them in a RADAR CHART (like theses ones : how to normalize statistics for a radar chart)

So for now, I have created a Servlet like this :

public class ChartRenderingServlet extends HttpServlet {
    private static final long serialVersionUID = 1L;
    private ChartEngine chartEngine = null;
    private Chart chart = null;
    private IDeviceRenderer iDeviceRenderer = null;
    private IDisplayServer iDisplayServer = null;
    private IGenerator iGenerator = null;
    private String fontName = "Arial";
    private float size = 10;
    private boolean bBold = false;
    private boolean bItalic = false;
    private ColorDefinition cd = ColorDefinitionImpl.BLACK();

    /**
     * @see HttpServlet#HttpServlet()
     */
    public ChartRenderingServlet() {
        super();
        // Starting platform
        PlatformConfig platformConfig = new PlatformConfig();
        platformConfig.setProperty("STANDALONE", true);

        // Creating chart Engine
        chartEngine = ChartEngine.instance(platformConfig);
        iGenerator = chartEngine.getGenerator();

        try {
            iDeviceRenderer = chartEngine.getRenderer("dv.PNG");
            iDisplayServer = iDeviceRenderer.getDisplayServer();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    /**
     * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
     *      response)
     */
    protected void doGet(HttpServletRequest request,
            HttpServletResponse response) throws ServletException, IOException {
        RunTimeContext context;
        chart = ChartWithoutAxesImpl.create();
        chart.setType("RADAR");

        try {
            // PREPARE PHASE
            context = Generator.instance().prepare(chart, null, null, ULocale.getDefault());

            // BIND PHASE
            //Long id = Long.valueOf(request.getParameter("id"));
            NumberDataSet orthoValues = NumberDataSetImpl.create(new double[] {25, 35, 15, 5, 20});
            RadarSeries radarSeries = RadarSeriesImpl.create();
            radarSeries.setDataSet(orthoValues);

            // RENDER PHASE
            GeneratedChartState generatedChartState = iGenerator.build(iDisplayServer, chart, null, null, context);
            iGenerator.render(iDeviceRenderer, generatedChartState);
        } catch (ChartException 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
    }

}

Any help would really be appriciated because I don’t even know whether this is correct or not.

Thanks a lot,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:40:48+00:00Added an answer on May 25, 2026 at 6:40 pm

    Never mind,

    when developing BIRT report-powered app, try to take a higher abstraction level when coding. I mean, there’s no need to code against the low-level API : just take your rptdesign file and leverage the Birt Runtime API to code the app directly. If I can suggest something, I would say use the main API available which is Report Engine API, it will speed up your development.

    And the cool thing with it is that, you have a lot of documentation available since it’s the most common way of developing a BIRT-powered app.

    tchusss …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create programmatically a uitableview that can scroll and fit based
i've been trying to create a camera-related app. i know that i could create
I'm trying to create a view programmatically. The result that i want to have
How can I show/hide the desktop icons programmatically, using C#? I'm trying to create
I'm trying to create another UINavigationBar in my project, but it seems that I'm
I am trying to create a tool to modify my service's app.config file programmatically.
I'm trying to create a drawable from an ImageView I know that we can
I am trying to programmatically create a PowerPoint from graphs in Access. Ideally, when
I am trying to programmatically create a number of PDF documents with a watermark
I'm trying to create Excel 2007 Documents programmatically. Now, there are two ways I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.