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