Jump to content
We've recently updated our Privacy Statement, available here ×

How to create a Dotter Graph with multiples column values


nicolas400

Recommended Posts

Hi,

I want to know if I can create a Bean like: List<Object, List<Object>> and pass it to a report, to show a Dotter graph where I have multiple column values,

The thing is that the secon List can have 2 or more elements and I don't know on runtime!

like this:

 

 Value 1Value 2Value 3Value 4Value 5
Serie 110080100180100
Serie 2100100808070
Serie 3     

And, in other time I only need value 1 and value 2

and in other time could be 20 Value commands.

 

I'm using eclipse rcp, with Jasper Reports 4.1.2.

I know is old, but i need it !

This is a sample on how I pass data to the reports

            Map<Object, Object> parameters = new HashMap<Object, Object>();
            parameters.put("anio", anio.getAnio());
            parameters.put("logo", "/images/logo.jpg");
            parameters.put("filial", filial);
            parameters.put("f", cruzas.get(0).getFilial());        //Tomo Primer Filial    
            
            List<CruzaDTO> contenido = generarContenido(cruzas, filial);
            JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(contenido);
            JasperReport report = (JasperReport) JRLoader.loadObject(FilialesReportGenerator.class.getClassLoader().getResourceAsStream("reportes/FilialesLibro.jasper"));
            print = JasperFillManager.fillReport(report, parameters, ds);
 

 

Thanks

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...