Results 1 to 2 of 2
  1. #1
    Marcus is offline Member
    Join Date
    Jun 2007
    Posts
    92
    Rep Power
    0

    Default Graphs with Ireport

    In these days I was investigating and learning iReport and the truth before to make reports from the code, the difference really is great.I searched I could not manage to create a graph. In the notes what I found they said to me that it puts the graph in the report summary. and that when it does it would appear to me an option to qualify Scriptlets, soon to choose “Yes”, but never it appeared to me east message.

    My query (SQL) is simple.

    Java Code:
    select name, count (*) as counts
    from categories c, agents a
    where c.idCategory = a.idCategory
    group by c.idCategory
    order by c.idCategory
    I create a graph (foot 3D), in data of the graph (chart dates), I have 2 lapels “DataSet” and “Details”, in this last one I add in Key Expression $F{name} and in value Expression $F{counts}. I am not safe of what values it is necessary to put in “Key Expression” and in “Expression”.

    In some notes that I also read is the series of data, although still on 3d I do not have it or it does not appear to me. In “DataSet” I do not make changes, although I proved to change a little to see if it worked. In aim the registries appear, but the graph no! I have version 1.2.5.

    Marcus :cool:

  2. #2
    Daniel is offline Member
    Join Date
    Jun 2007
    Posts
    91
    Rep Power
    0

    Default

    JfreeChart is a very good and simple API for graphs

    Please check this:

    JFreeChart

    Greetings
    Daniel:o

Similar Threads

  1. iReport
    By Freddie in forum Advanced Java
    Replies: 6
    Last Post: 04-20-2010, 06:25 PM
  2. To display performance statistics as graphs using JSP, Spring and JBoss
    By sheeba in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 03-11-2009, 05:36 PM
  3. Graphs
    By javaplus in forum Advanced Java
    Replies: 1
    Last Post: 12-07-2007, 09:17 PM
  4. Eclipse+ireport
    By Nick15 in forum Eclipse
    Replies: 2
    Last Post: 05-14-2007, 04:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •