没人研究Jfreechart么?
N个地方贴问题了,就是没人答.
小弟我要实现在一个jsp页面上画出两个曲线图,每个图都是以时间为x轴,多纵轴.并且要在鼠标指向各个数据点的时候显示其坐标.
写了一个方法
public void drawMoreZheXian(ArrayList TimeSeriesLIst, ArrayList showList,
ArrayList colorList, String[] groupArr,
String[] titleArr, String zmStr,
JspWriter out, int width, int height,
String[] colorArr, int bgcolor) {
CombinedDomainXYPlot plot = new CombinedDomainXYPlot(new DateAxis(zmStr));
if (groupArr != null && groupArr.length > = 1) {
for (int i = 0; i < groupArr.length; i++) {
//String[] numArr = groupArr[i].split( ", ");
//循环把各组值放到 collection中
TimeSeriesCollection dataset = new TimeSeriesCollection();
dataset.addSeries( (TimeSeries) TimeSeriesLIst.get(i));
//生产工具提示信息的ArrayList
ArrayList[] tooltips = new ArrayList[showList.size()];
for (int k = 0; k < showList.size(); k++) {
tooltips[k] = getCurveSeries( (String[]) showList.get(k));
}
////////////////////////井数
NumberAxis rangeAxis1 = new NumberAxis(titleArr[i]);
CustomXYToolTipGenerator ttg1 = new CustomXYToolTipGenerator();
//加入各条曲线的工具提示条
ttg1.addToolTipSeries(tooltips[i]);
//生成曲线的透视层
StandardXYItemRenderer renderer1 = new StandardXYItemRenderer(
StandardXYItemRe