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. 常用的几个PHP加密函数

    1.前言 PHP加密方式分为单项散列加密,对称加密,非对称加密这几类. 像常用的MD5.hash.crypt.sha1这种就是单项散列加密,单项散列加密是不可逆的. 像URL编码.base64编码这种 ...

  2. FC经典游戏还原之:松鼠大作战2

    版权声明:本文原创发布于博客园"优梦创客"的博客空间(id:raymondking123) 原帖地址:http://www.cnblogs.com/raymondking123/p ...

  3. Audio Unit 基础

    如图所示,所有 iOS 音频技术都是基于 audio units.此处显示的更高级别的技术,如 Media Player,AV Foundation,OpenAL,AudioToolbox,是对 au ...

  4. iOS-Mac Charles抓包工具的使用【Mac 抓包工具Charles】

    1.下载文件 Charles安装包以及破解文件下载地址:http://charles.iiilab.com 2.安装及使用 使用介绍 http://www.cocoachina.com/ios/201 ...

  5. SpringMVC源码情操陶冶-HandlerAdapter适配器简析

    springmvc中对业务的具体处理是通过HandlerAdapter适配器操作的 HandlerAdapter接口方法 列表如下 /** * Given a handler instance, re ...

  6. 常系数齐次线性递推 & 拉格朗日插值

    常系数齐次线性递推 具体记在笔记本上了,以后可能补照片,这里稍微写一下,主要贴代码. 概述 形式: \[ h_n = a_1 h_{n-1}+a_2h_{n-2}+...+a_kh_{n-k} \] ...

  7. BZOJ 3530: [Sdoi2014]数数 [AC自动机 数位DP]

    3530: [Sdoi2014]数数 题意:\(\le N\)的不含模式串的数字有多少个,\(n=|N| \le 1200\) 考虑数位DP 对于长度\(\le n\)的,普通套路DP\(g[i][j ...

  8. elasticsearch 6 在 centos 6 上的安装问题

    ERROR: bootstrap checks failed max file descriptors [4096] for elasticsearch process likely too low, ...

  9. 在OS X系统中php访问sftp时需要ssh2扩展的安装

    php -v brew install homebrew/php/php55-ssh2 [实现方式] <?php $connection = ssh2_connect('192.168.0.14 ...

  10. Apollo阿波罗配置中心docker

    前言 在分布式系统中,要改个配置涉及到很多个系统,一个一个改效率低下,吃力不讨好.用配置中心可以解决这个问题.当然配置中心有不少,以下对比的表格是照搬Apollo Wiki的. 功能点 Apollo ...