FusionCharts MSBar2D圖

來源:互聯網
上載者:User

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、運行結果


相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.