求销售漏斗图画图插件 最近在做一个SSH项目,需要画销售漏斗图,谁知道有什么好的画图插件支持漏斗图吗?Jquery和JfreeChart好像都没有漏斗图大虾们推荐一个!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在jsp 页面中可以封装为一标签 public class xxxxChartTag extends TagSupport { private static final long serialVersionUID = 1L; private int width; //图表宽度 private int height; //图表高度 private String type; //图表类型 private DataVO datavo; //图表数据对象 private static final int EVAL_PAGE = 6; private String attrbuteName; //request对象名字 private String chartType; //图表显示方式2D或3D /** * * <p>Discription:[构造器方法描述]</p> * @coustructor 方法. */ public NtasChartTag() { super(); width = 790; height = 460; attrbuteName = NtasConst.REQUEST_DATAVO_KEY; chartType="2D"; } public int doStartTag() throws JspException { StringBuffer stringbuffer = new StringBuffer(); HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); HttpSession session = request.getSession(true); datavo = (DataVO) request.getAttribute(attrbuteName); NTASChartFactory NChartFactory = new NTASChartFactory(datavo, session); NChartFactory.setPicWidth(width); NChartFactory.setPicHeight(height); NChartFactory.setChartstyle(chartType); try { NChartFactory.createNTASChart(type); } catch (Exception e1) { e1.printStackTrace(); } String picFileName = NChartFactory.getFileName(); String getPicURL = NChartFactory.getPicURL(); stringbuffer.append( NChartFactory.getChartMapHtml()); stringbuffer.append("<img border=\"0\" width=\"" + width + "\" height=\"" + height + "\" src=\"" + request.getContextPath()+getPicURL + "\" useMap=\"#" + picFileName + "\"/>"); JspWriter out = pageContext.getOut(); try { out.println(stringbuffer.toString()); } catch (IOException e) { e.printStackTrace(); } return EVAL_PAGE; } public int getHeight() { return height; } public String getType() { return type; } public int getWidth() { return width; } / public void setHeight(int i) { height = i; } public void setType(String string) { type = string; } public void setWidth(int i) { width = i; } public String getAttrbuteName() { return attrbuteName; } public void setAttrbuteName(String string) { attrbuteName = string; } public String getChartType() { return chartType; } public void setChartType(String string) { this.chartType = string; } } 首先感谢goldlive_8888的回答,但是不是我想要的答案,我是想画漏斗图,如果JfreeChart可以实现怎样实现,如果不能,有没有其他插件可以支持! java抛什么异常能让tomcat停止? java 发送mail的设置 jsp tomcat中出现的错误 用prototype.js中的Effect类的方法是不是还要引入其他的文件? 看看这个查询语句该怎样写?? jsp在线视频录制代码谁有?现在很困难!!!!!!!!!!!!!!!!! 求助:JSP中连接查询数据库中所以的记录时候,为什么只显示出来了一条(附代码) 在进行中文转换是vector报错? 关于自定义标记库的问题 一个关于用servet,struts,ejb开发设计问题,欢迎大家讨论 怎么配置CVS服务器 这个 ajax 程序是哪有问题? 希望有经验的人帮忙看看,谢谢
{ private static final long serialVersionUID = 1L;
private int width; //图表宽度
private int height; //图表高度
private String type; //图表类型
private DataVO datavo; //图表数据对象
private static final int EVAL_PAGE = 6;
private String attrbuteName; //request对象名字
private String chartType; //图表显示方式2D或3D
/**
*
* <p>Discription:[构造器方法描述]</p>
* @coustructor 方法.
*/
public NtasChartTag()
{
super();
width = 790;
height = 460;
attrbuteName = NtasConst.REQUEST_DATAVO_KEY;
chartType="2D";
}
public int doStartTag() throws JspException
{
StringBuffer stringbuffer = new StringBuffer();
HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
HttpSession session = request.getSession(true);
datavo = (DataVO) request.getAttribute(attrbuteName);
NTASChartFactory NChartFactory = new NTASChartFactory(datavo, session);
NChartFactory.setPicWidth(width);
NChartFactory.setPicHeight(height);
NChartFactory.setChartstyle(chartType); try
{
NChartFactory.createNTASChart(type);
}
catch (Exception e1)
{
e1.printStackTrace();
}
String picFileName = NChartFactory.getFileName();
String getPicURL = NChartFactory.getPicURL();
stringbuffer.append( NChartFactory.getChartMapHtml());
stringbuffer.append("<img border=\"0\" width=\"" + width + "\" height=\"" + height + "\" src=\"" + request.getContextPath()+getPicURL + "\" useMap=\"#" + picFileName + "\"/>");
JspWriter out = pageContext.getOut();
try
{
out.println(stringbuffer.toString());
}
catch (IOException e)
{
e.printStackTrace();
}
return EVAL_PAGE;
}
public int getHeight()
{
return height;
}
public String getType()
{
return type;
}
public int getWidth()
{
return width;
}
/ public void setHeight(int i)
{
height = i;
}
public void setType(String string)
{
type = string;
}
public void setWidth(int i)
{
width = i;
}
public String getAttrbuteName()
{
return attrbuteName;
}
public void setAttrbuteName(String string)
{
attrbuteName = string;
}
public String getChartType()
{
return chartType;
} public void setChartType(String string)
{
this.chartType = string;
} }