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

Charts DefaultPieDataSet


johnokrasa

Recommended Posts

I'm using netbeans plugin...

using a scriplet will not compile, Class not found in every config (is there some %JASPER_HOME% system var to set or something?)

so....

 

                DefaultPieDataset ds1 = new DefaultPieDataset();
                Vector vectPie = getPieData();
                for(int x=0; x< vectPie.size(); x++){
                  PieData pData = (PieData)vectPie.get(x);
                  String name = pData.getAname();
                  if(name.length()>30){
                    name = name.substring(0,30);
                  }
                  double value = pData.getAvalue();
                  ds1.setValue(name,value);
                }
                model.put("pieDS", ds1);

but how to get this parameter and set data in the chart?

If you use a subDataSet it wants a query or javabean (here again the classpath problem)

this is it's setting as netbeans plugin..

C:\Documents and Settings\John Okrasa\.netbeans\6.7\modules\ext\jasperreports-extensions-1.3.1.jar false

I suppose this will create problems!?

I'm using jasper ver. 3.6.0

 

How do I get the data to the chart with running a query, in a pieDataSet?

 

Thanks,

 

John

 

 

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...