动态生成柱图问题?

lvovovo 2009-05-09 01:51:44
怎么如何实现动态生成柱图?类似www.jizhangla.com中的月份报表的功能,将数据自动生成柱图显示.



最好有现成的系统参考.
...全文
81 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
lvovovo 2009-05-11
  • 打赏
  • 举报
回复
怎么样可以将手标移到这些柱子上,有显示图片呢.
lvovovo 2009-05-11
  • 打赏
  • 举报
回复
想要网页版的.
ONE_DATA 2009-05-11
  • 打赏
  • 举报
回复
你要自己写代码实现啊? 这个用现成的报表工具实现好了 像是Birt、FineReport、水晶 都可以
lvovovo 2009-05-11
  • 打赏
  • 举报
回复
<style>
body{oMousemove:expression(onmousemove=function(){
if(event.srcElement.hint){
toolTips.innerHTML=event.srcElement.hint;
toolTips.style.display='';
toolTips.style.left=event.x+10;
toolTips.style.top=event.y+7;}
else{
toolTips.style.display='none';
}
}
);}
#toolTips{position:absolute;border:0px solid black;padding:4px;background:transparent;font-family:verdana;font-size:10px;}
</style>

<div id="toolTips" style="display:none"></div>
<div hint="<img src=SL730032.JPG>"><img src="SL730032.JPG">ooooo.com</div>


<div id="toolTips2" style="display:none"></div>
<div hint="<img src=SL730028.JPG>">ooooo.com</div>


<div id="toolTips3" style="display:none"></div>
<span hint="<img src=SL730032.JPG>">sssss.com</span>




这段代码对文字起作用,对图片如何起作用?
Msxindl_Com 2009-05-09
  • 打赏
  • 举报
回复
参考一下简单示例:

<%
dim x,y,z
'假设这是从数据库中读取的值.
x=60
y=200
z=130
%>
<div style="border:1px solid black;padding:0px;">
<table cellpadding="0" cellspacing="0" style="height:350px;border-collapse:collapse" align="center">
<tr valign="bottom">
<td><img src="http://www.mjsc.bigwww.com/pic.gif" width="11" height="9" border="0" onmouseover="this.alt=this.height"></td>
<td><img src="http://www.mjsc.bigwww.com/pic.gif" width="11" height="90" border="0" onmouseover="this.alt=this.height"></td>
<td><img src="http://www.mjsc.bigwww.com/pic.gif" width="11" height="20" border="0" onmouseover="this.alt=this.height"></td>
<td><img src="http://www.mjsc.bigwww.com/pic.gif" width="11" height="<%=x%>" border="0" onmouseover="this.alt=this.height"></td>
<td><img src="http://www.mjsc.bigwww.com/pic.gif" width="11" height="8" border="0" onmouseover="this.alt=this.height"></td>
<td><img src="http://www.mjsc.bigwww.com/pic.gif" width="11" height="<%=y%>" border="0" onmouseover="this.alt=this.height"></td>
<td><img src="http://www.mjsc.bigwww.com/pic.gif" width="11" height="<%=z%>" border="0" onmouseover="this.alt=this.height"></td>
<td><img src="http://www.mjsc.bigwww.com/pic.gif" width="11" height="2" border="0" onmouseover="this.alt=this.height"></td>
<td><img src="http://www.mjsc.bigwww.com/pic.gif" width="11" height="35" border="0" onmouseover="this.alt=this.height"></td>
<td><img src="http://www.mjsc.bigwww.com/pic.gif" width="11" height="80" border="0" onmouseover="this.alt=this.height"></td>
</tr>
</table>
</div>

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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