FusionCharts 2D條狀圖

來源:互聯網
上載者:User

$(function(){                var bar2D = new FusionCharts( "../script/Charts/Bar2D.swf", "myChartId", "100%", "540", "0" );                bar2D.setXMLUrl("data/bar2D.xml");                bar2D.render("bar2DChart");               });

<?xml version="1.0" encoding="UTF-8"?><chart caption='2013年動物飼養量' xAxisName='動物名稱' yAxisName='飼養量' showValues='1' baseFontSize='12' baseFontColor='#A45454'       dashed='1' numDivLines='40' divLineColor='#0000FF' divLineThickness='1' divLineAlpha='50' divLineIsDashed='1' divLineDashLen='2'       formatNumber='1' scaleRecursively='1' outCnvBaseFont='#456454' outCnvBaseFontSize='16' outCnvBaseFontColor='#00FF00' showToolTip='1'       toolTipBgColor='#565677' toolTipBorderColor='#CCCCCC' showToolTipShadow='1' chartLeftMargin='5' showLabel='1'>   <set label='豬' value='9856456454' />   <set label='牛' value='8754545554' />   <set label='羊' value='5784554458' />   <set label='兔' value='451545554' />   <set label='雞' value='7989565666' />   <vLine color='FF5904' thickness='2' dashed='1' showLabelBorder='1' labelVAlign='middle' labelHAlign='center'/>   <set label='鴨' value='5613265666' />   <set label='鵝' value='784545555' />   <set label='蛇' value='45412121' />   <set label='蛙' value='656521' />   <set label='魚' value='7854656666' /></chart>

<div id="bar2DChart"></div>

4、附錄

<!DOCTYPE html><!--To change this license header, choose License Headers in Project Properties.To change this template file, choose Tools | Templatesand open the template in the editor.--><html>    <head>        <title>FusionCharts 2D條狀圖</title>        <meta charset="UTF-8">        <meta name="viewport" content="width=device-width">        <script type="text/javascript" src="../script/jquery-1.10.2.js"></script>        <script type="text/javascript" src="../script/Charts/FusionCharts.js"></script>        <style type="text/css">            body{                width:98%;                height:100%;                font-size:12px;            }            #bar2DChart{                width:100%;            }        </style>        <script type="text/javascript">            $(function(){                var bar2D = new FusionCharts( "../script/Charts/Bar2D.swf", "myChartId", "100%", "540", "0" );                bar2D.setXMLUrl("data/bar2D.xml");                bar2D.render("bar2DChart");               });        </script>    </head>    <body>        <div id="bar2DChart"></div>    </body></html>




相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.