java中能生成饼状图,柱状图的控件,谁给推荐几个?
------解决方案--------------------
jfree 就能实现
------解决方案--------------------
jfreechart
good luck
------解决方案--------------------
Jfreechart
开源,而且有实例可供参考
------解决方案--------------------
推荐fusionchart ,比jfreechart好点,图形也比较美观
------解决方案--------------------
jfreechart吧
设置的参数比较多,如果配置的好,效果真的不错
------解决方案--------------------
<%@page import="ChartDirector.*" %>
<%
// 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>
------解决方案--------------------
Google一大堆。jfreechart算是做的还比较好的。
------解决方案--------------------
毫无疑问 jfreechart 你要是要例子 我可以给你
qq:361627704