1、数据源

DrawingPad.xml:

<?xml version="1.0" encoding="UTF-8"?>
<chart bgColor='E1F5FF'>
         <annotations>

      <!--Group containing the rectangles-->
            <annotationGroup id='Grp1' >
               <annotation type='rectangle' x='30' y='100' toX='110' toY='220' radius='5' color='453269' />
               <annotation type='rectangle' x='235' y='100' toX='315' toY='220' radius='5' color='453269' />
               <annotation type='rectangle' x='440' y='100' toX='520' toY='220' radius='5' color='453269' />
            </annotationGroup>

      <!--Group containing the text inside the rectangles-->
              <annotationGroup id='Grp2'>
                 <annotation type='text' x='70' y='155' fontSize='12' bold='1' label='客户端' color='FFFFFF'/>
                 <annotation type='text' x='275' y='140' fontSize='12' bold='1' label='浏览器' color='FFFFFF'/>
                 <annotation type='text' x='480' y='155' fontSize='12' bold='1' label='服务端' color='FFFFFF'/>
              </annotationGroup>

      <!--Group containing all the description text         -->
             <annotationGroup id='Grp3' >
                 <annotation type='text' x='170' y='130' label='发送信息请求' fontSize="12" wrap='1' wrapWidth='100' color='453269'/>
                 <annotation type='text' x='380' y='130' label='请求到数据库' fontSize="12" wrap='1' wrapWidth='100' color='453269'/>
                 <annotation type='text' x='380' y='200' label='返回响应数据' fontSize="12" wrap='1' wrapWidth='100' color='453269'/>
                 <annotation type='text' x='170' y='200' label='显示信息' fontSize="12" wrap='1' wrapWidth='100' color='453269'/>
              </annotationGroup>

      <!--Group containing all the arrows-->
             <annotationGroup id='Grp4'>

         <!--arrow for process 2-->
                 <annotation type='line' x='120' y='160' toX='220' color='453269' />
                 <annotation type='line' x='215' y='155' toX='220' toY='160' color='453269' />
                 <annotation type='line' x='215' y='165' toX='220' toY='160' color='453269' />

         <!--arrow for process 6-->
                 <annotation type='line' x='120' y='175' toX='220' color='453269' />
                 <annotation type='line' x='125' y='170' toX='120' toY='175' color='453269' />
                 <annotation type='line' x='125' y='180' toX='120' toY='175' color='453269' />

         <!--arrow for process 3-->
                 <annotation type='line' x='325' y='155' toX='435' color='453269' />
                 <annotation type='line' x='430' y='150' toX='435' toY='155' color='453269' />
                 <annotation type='line' x='430' y='160' toX='435' toY='155' color='453269' />

         <!--arrow for process 4-->
                 <annotation type='line' x='325' y='170' toX='435' color='453269' />
                 <annotation type='line' x='330' y='165' toX='325' toY='170' color='453269' />
                 <annotation type='line' x='330' y='175' toX='325' toY='170' color='453269' />
              </annotationGroup>

      <!--Group containing the header-->
                     <annotationGroup id='Grp5'>
                        <annotation type='text' label='请求响应' fontSize='16' fontColor='666666'
                         bold='1' x='280' y='20'/>
                     </annotationGroup>
           </annotations>
           <styles>
              <definition>

         <!--Shadow for the rectangles-->
                 <style name='Shadow1' type='shadow' distance='7'/>

         <!--Shadow for the labels inside the rectangles-->
                 <style name='Shadow2' type='shadow' strength='3'/>

         <!--Shadow for the description text but with alpha 0 so that the text gets converted into bitmap and can be animated then-->
                 <style name='Shadow3' type='shadow' alpha='0'/>
                 <style name='AnimX' type='animation' param='_x' start='-50' wait='0' duration='1' easing='Bounce'/>
                 <style name='AnimY' type='animation' param='_y' start='-30' wait='1' duration='1' easing='Bounce'/>
                 <style name='AnimXScale' type='animation' param='_xScale' start='0' end='100' wait='2' duration='0.5'/>
                 <style name='AnimAlpha' type='animation' param='_alpha' start='0' wait='2' duration='1'/>
                 <style name='AnimY2' type='animation' param='_y' start='-50' wait='2' duration='1'/>
            </definition>

      <application>
                 <apply toObject='Grp1' styles='Shadow1, AnimX'/>
                 <apply toObject='Grp2' styles='Shadow2, AnimY'/>
                 <apply toObject='Grp3' styles='Shadow3,AnimY2'/>
                 <apply toObject='Grp4' styles='AnimXScale, AnimAlpha'/>
              </application>
           </styles>
</chart>

2、JSP页面

DrawingPad.jsp:

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>FusionWidgets DrawingPad图</title>
<script type="text/javascript" src="../Chart/JS/jquery-2.1.0.js"></script>
<script type="text/javascript" src="../Chart/JS/FusionCharts.js"></script>
<script type="text/javascript">
    $(function(){
    	var drawingPad = new FusionCharts( "../Chart/SWF/DrawingPad.swf", "drawingPadId", "100%", "550", "0" );
    	drawingPad.setXMLUrl("xml/DrawingPad.xml");
    	drawingPad.render("drawingPadDiv");
    });
</script>
</head>
<body>
   <div id="drawingPadDiv"></div>
</body>
</html>

3、运行结果

FusionWidgets DrawingPad图的更多相关文章

  1. FusionWidgets Cylinder图

    1.数据源 Cylinder.xml: <?xml version="1.0" encoding="UTF-8"?> <chart palet ...

  2. FusionWidgets Bulb图

    1.数据源提供 Bulb.xml: <?xml version="1.0" encoding="UTF-8"?> <chart lowerLi ...

  3. FusionWidgets之AngularGauge图

    1.设置AngularGauge图的数据源 AngularGauge.xml: <?xml version="1.0" encoding="UTF-8"? ...

  4. FusionCharts制作实时刷新图

    转自:http://yklovejava-163-com.iteye.com/blog/1889949 下面介绍的是用FusionCharts制作实时刷新图的过程(FusionCharts确实太好用了 ...

  5. PHP-生成缩略图和添加水印图-学习笔记

    1.开始 在网站上传图片过程,经常用到缩略图功能.这里我自己写了一个图片处理的Image类,能生成缩略图,并且可以添加水印图. 2.如何生成缩略图 生成缩略图,关键的是如何计算缩放比率. 这里,我根据 ...

  6. 火焰图分析openresty性能瓶颈

    注:本文操作基于CentOS 系统 准备工作 用wget从https://sourceware.org/systemtap/ftp/releases/下载最新版的systemtap.tar.gz压缩包 ...

  7. 一起来玩echarts系列(一)------箱线图的分析与绘制

    一.箱线图 Box-plot 箱线图一般被用作显示数据分散情况.具体是计算一组数据的中位数.25%分位数.75%分位数.上边界.下边界,来将数据从大到小排列,直观展示数据整体的分布情况. 大部分正常数 ...

  8. iOS开发系列--打造自己的“美图秀秀”

    --绘图与滤镜全面解析 概述 在iOS中可以很容易的开发出绚丽的界面效果,一方面得益于成功系统的设计,另一方面得益于它强大的开发框架.今天我们将围绕iOS中两大图形.图像绘图框架进行介绍:Quartz ...

  9. Webstorm+Webpack+echarts构建个性化定制的数据可视化图表&&两个echarts详细教程(柱状图,南丁格尔图)

    Webstorm+Webpack+echarts   ECharts 特性介绍 ECharts,一个纯 Javascript 的图表库,可以流畅的运行在 PC 和移动设备上,兼容当前绝大部分浏览器(I ...

随机推荐

  1. Linux 下定时备份数据库以及删除缓存

    一.定时备份数据库 1.在根目录下创建备份文件夹 #mkdir backup 2.进入到该目录下,创建backup.sh文件 3.赋予文件权限让其变成可执行文件 4.在backup.sh中写备份的脚本 ...

  2. 【mac】ssh免登录密码

    mac ssh免登录密码 在mac或者Linux上需要使用ssh登服务器,每次都需要输密码感觉很麻烦,搜了一下找到一个脚本,实践后发现可行. 1.创建脚本xx.sh $ vim xx.sh 输入: # ...

  3. dom4j读取xml

    -----记录和回顾是一个比学习更重要的环节----- 一.首先,我们需要知道xml是做什么的 1.作为软件的配置文件 2.作为数据的载体(小型的数据库) 二.xml的语法 xml文件以xml后缀名结 ...

  4. Flex Grid学习-链接

    这些是我个人在学习这两种布局的时候参考的资料,希望对大家有用-- 1.Flex 阮一峰(flex语法讲解):http://blog.csdn.net/naruto_luoluo/article/det ...

  5. Delegate &&Lambda

    匿名函数及委托的使用: public delegate void NoReturnNoParaOutClass();//delegate can be defined in class or out ...

  6. linux下qt的安装

    2.1环境的搭建 linux-> 2.1.1 ./qt-opensource-linux-x86-5.5.0.run 2.1.2 vim /etc/profile (.bashrc) expor ...

  7. Qt滑动条设计与实现

    没有找到Qt的滑动条控件,所以自己写了一个,能够实现亮度调节.音量调节等功能. 效果如下图: 主要设计思路: 有些调节功能如对比度是有负值的,所以需要能对滑动条的数值范围进行设置,不局限于0~100 ...

  8. express respond.send 和 end的区别

    做个记录 res.send() will send the HTTP response. Its syntax is, res.send([body]) The body parameter can ...

  9. python学习:简单的wc命令实现

    #!/usr/bin/python   import sys import os   try:     fn = sys.argv[1] except IndexError:     print &q ...

  10. angular+require前端项目架构搭建

    app //应用入口 directive //自定义指令 require-main //require的主配置文件  存放公共调用的js service //请求后端数据公有类 controllers ...