java中能生成饼状图,柱状图的控件,谁给推荐几个?
解决方案 »
- 求助,java中怎么统计流量和处理文字???
- java开发大型网站(流量大,数据大(上万G数据))用什么架构?
- 关于扒取他人后台数据库的问题。
- hibernate级联删除问题.
- 关于Jetspeed2的验证问题,在线等待~~~~~~~~~~)))
- 开放OA源码!
- 请教高手
- JBoss+Tomcat居然不能编译<jsp:include page="xxx.xxx"/>标记
- java中使用getResourceAsStream()能不能识别绝对路径
- spring中setting注入先于构造注入还是后于构造注入?
- java.sql.SQLException: Invalid column type
- SQL 查询去重复值 ?
开源,而且有实例可供参考
设置的参数比较多,如果配置的好,效果真的不错
<%
// The data for the pie chart
double[] data = {25, 18, 15, 12, 8, 30, 35};// The labels for the pie chart
String[] labels = {"Labor", "Licenses", "Taxes", "Legal", "Insurance", "Facilities",
"Production"};// Create a PieChart object of size 360 x 300 pixels
PieChart c = new PieChart(360, 300);// Set the center of the pie at (180, 140) and the radius to 100 pixels
c.setPieSize(180, 140, 100);// Add a title to the pie chart
c.addTitle("Project Cost Breakdown");// Draw the pie in 3D
c.set3D();// Set the pie data and the pie labels
c.setData(data, labels);// Explode the 1st sector (index = 0)
c.setExplode(0);// output the chart
String chart1URL = c.makeSession(request, "chart1");// Include tool tip for the chart
String imageMap1 = c.getHTMLImageMap("", "",
"title='{label}: US${value}K ({percent}%)'");
%>
<html>
<body topmargin="5" leftmargin="5" rightmargin="0">
<div style="font-size:18pt; font-family:verdana; font-weight:bold">
3D Pie Chart
</div>
<hr color="#000080">
<a href="viewsource.jsp?file=<%=request.getServletPath()%>">
<font size="2" face="Verdana">View Chart Source Code</font>
</a>
</div>
<br>
<img src='<%=response.encodeURL("getchart.jsp?"+chart1URL)%>'
usemap="#map1" border="0">
<map name="map1"><%=imageMap1%></map>
</body>
</html>
qq:361627704
开源,而且有实例可供参考