jsp chart 能否一个chart上花几条线?

hyrongg 2010-01-26 05:08:34
目前这样


<table border="0" cellpadding="0" cellspacing="0" width="100%" height='280' class='innerbarII'>
<tr><td align='center' valign='bottom'>
<img border=0 src="http://localhost:8084/servlet/com.objectplanet.chart.ChartServlet?chart=line&graphInsets=80,80,50,260&width=640&height=480&sampleValues=12,34,45,56,67,56,67&sampleLabels=one,two,three,four,five,six,seven,eight,nine,ten&sampleLabelsOn=true">
</td></tr>
</table>


但这样只能画一条折线,怎么才能在上面画多条折线?

在线等,谢谢
...全文
56 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
hyrongg 2010-01-26
  • 打赏
  • 举报
回复
easy Chart 范例代码:

http://localhost:8084/servlet/com.objectplanet.chart.ChartServlet?
chart=line&
width=600&
height=300&
seriesCount=4&
sampleValues_0=72,87,45,28,65&
sampleValues_1=486,745,854,368,267&
sampleValues_2=3,6,7,6,5&
sampleValues_3=286,145,154,268,667&
sampleColors=%23C6C6C6,%23498EFF,%23635AFF,%2331319C&
multiColorOn=true&
seriesRange_0=1&
seriesRange_1=2&
seriesRange_2=3&
seriesRange_3=4&
rangeOn_2=true&
rangeOn_3=true&
rangeOn_4=true&
rangePosition_1=left&
rangePosition_2=left&
rangePosition_3=right&
rangePosition_4=right&
rangeStep=100&
rangeStep_2=1000&
rangeStep_3=10&
rangeStep_4=100&
rangeColor=%23666666&
rangeColor_2=%23498EFF&
rangeColor_3=%23635AFF&
rangeColor_4=%2331319C&
rangeAxisLabel=range%20one&
rangeAxisLabel_2=range%20two&
rangeAxisLabel_3=range%20three&
rangeAxisLabel_4=range%20four&
rangeAxisLabelAngle=270&
rangeAxisLabelAngle_2=270&
rangeAxisLabelAngle_3=270&
rangeAxisLabelAngle_4=270&
rangeAxisLabelFont=Arial,%20BOLD,%2012&
valueLinesOn=true&
valueLabelsOn=true&
valueLabelStyle=inside&
valueLabelAngle=270&
barWidth=0.6&
3DModeOn=true&
3DDepth=4&
background=white
hoojo 2010-01-26
  • 打赏
  • 举报
回复
宽为1不就是一条线了
tuo_bing 2010-01-26
  • 打赏
  • 举报
回复
将划线的这个功能独立出来,形成一个方法体,传递的参数作为方法的参数,然后在请求的时候循环调用这个方法(可以自行设定参数)
liwenso 2010-01-26
  • 打赏
  • 举报
回复
没使用过,帮顶

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧