• FusionCharts MSBar2D图


    1、页面展示

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <title>FusionCharts MSBar2D图</title>
    	
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
        <meta http-equiv="description" content="this is my page">
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="../scripts/jquery-2.0.3.js"></script>
        <script type="text/javascript" src="../scripts/Charts/FusionCharts.js"></script>
        <script type="text/javascript">
            $(function(){
                  var doubleBar = new FusionCharts( "../scripts/Charts/MSBar2D.swf", "doubleLineId", "100%", "540", "0" );
          		  doubleBar.setXMLUrl("data/doubleLine.xml");
                  doubleBar.render("doubleBarChart");
            });
        </script>
    
      </head>
      
      <body>
         <div id="doubleBarChart"></div>
      </body>
    </html>
    

    2、数据源

    <?xml version="1.0" encoding="UTF-8"?>
    <chart caption='2012和2013年某桥一周通过的人数' xAxisName='星期' yAxisName='人数' showValues='0' 
           baseFont='微软雅黑' baseFontSize='14' baseFontColor='#FF0000' outCnvBaseFont='宋体'
           outCnvBaseFontSize='20' outCnvBaseFontColor='#00FF00' legendShadow='1' 
           legendAllowDrag='1' reverseLegend='1' interactiveLegend='1' legendNumColumns='2'
           minimiseWrappingInLegend='1' showLegend='1' legendPosition='BOTTOM' showZeroPlane='1'>
    
       <categories>
          <category label='星期一' />
          <category label='星期二' />
          <category label='星期三' />
          <category label='星期四' />
          <category label='星期五' />
          <category label='星期六' />
          <category label='星期日' />
       </categories>
    
       <dataset seriesName='2012'>
          <set value='656445' />
          <set value='412555'/>
          <set value='956566' />
          <set value='125645' />
          <set value='561124' />
          <set value='265655' />
          <set value='451212' />
       </dataset>
    
       <dataset seriesName='2013'>
          <set value='154512'/>
          <set value='598655'/>
          <set value='654544'/>
          <set value='956565'/>
          <set value='245454' />
          <set value='965565' />
          <set value='454545' />
       </dataset>
    
    </chart>
    

    3、运行结果


  • 相关阅读:
    不会吧不会吧,还有开发不会Java填充PDF模板数据的,赶紧看看吧
    关于Redis分布式锁这一篇应该是讲的最好的了,先收藏起来再看!
    iOS-----后台运行
    iOS-----使用GCD实现多线程
    iOS-----线程同步与线程通信
    iOS-----多线程之NSThread
    iOS-----MFMessageCompose 和 MFMailComposeViewController的使用方法
    iOS-----使用AddressBookUI管理联系人
    iOS-----使用addressBook管理联系人之修改联系人
    iOS-----简易地CocoaAsyncSocket使用
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13315421.html
Copyright © 2020-2023  润新知