<% ... @ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <% ... @ page import="SoftwareFX.ChartFX.*" %> <% ... @ page import="java.util.*" %> < form action ="bar.jsp" method ="post" > <% ... ChartServer chart1 = new ChartServer(application,request,response); java.util.Random r = new java.util.Random(1); double dd; chart1.setGallery(Gallery.BAR);// Populating the chart1 with random data to get 3 series chart1.openData(COD.VALUES, 3, 3); for (int i=0;i<2;i++) { for (int j=0;j<3;j++) { if(i==0) { chart1.getValue().setItem(i, j,0); } else { chart1.getValue().setItem(i, j,r.nextDouble()); } } } chart1.closeData(COD.VALUES); // It looks better with Borders chart1.setBorder(true); chart1.setBorderEffect(BorderEffect.RAISED); chart1.setAxesStyle(AxesStyle.MATH); %> <% = chart1.getHtmlTag( " 450 " , " 280 " , " PNG " ) %> </ form >