FusionCharts 2D面積圖

來源:互聯網
上載者:User

<?xml version="1.0" encoding="UTF-8"?><chart caption='2013年水果年產量' xAxisName='水果名稱' yAxisName='水果產量' baseFont='微軟雅黑' baseFontSize='12' showValues='0'       baseFontColor='#00FF33' outCnvBaseFont='宋體' outCnvBaseFontSize='14' outCnvBaseFontColor='#0000FF'showLabels='1'        useEllipsesWhenOverflow='1' rotateLabels='1' showYAxisValues='1' showLimits='1' showDivLineValues='1' adjustDiv='1'       rotateYAxisName='1' defaultAnimation='1' yAxisMinValue='0' yAxisMaxValue='10000000' setAdaptiveYMin='1' centerYaxisName='1'       bgColor='#0000FF' bgAlpha='50' bgRatio='50' bgAngle='90' canvasBgColor='#EE7700' showVLineLabelBorder='1' drawAnchors='1'       anchorSides='8' anchorRadius='10' anchorBorderColor='#EEEE00' numDivLines='8' divLineIsDashed='1' numVDivLines='8'        showAlternateVGridColor='1' vDivLineIsDashed='1' vDivLineAlpha='50' vDivLineThickness='1' showToolTip='1'>   <set label='蘋果' value='8945459' />   <set label='橘子' value='3652120' />   <set label='桃子' value='4578540' />   <set label='荔枝' value='1245120' />   <set label='梨子' value='8451222' />   <set label='李子' value='4125120' />   <set label='芒果' value='2356412' />   <set label='香蕉' value='7541201' />   <set label='菠蘿' value='6541222' />   <set label='菩提' value='1201421' />   <set label='櫻桃' value='6541112' />   <set label='葡萄' value='2356666' />   <trendLines>     <line startValue='7000000' color='009933' displayvalue='Target' />   </trendLines>   <styles>      <definition>         <style name='CanvasAnim' type='animation' param='_xScale' start='0' duration='1' />      </definition>      <application>         <apply toObject='Canvas' styles='CanvasAnim' />      </application>   </styles></chart>

var area2D = new FusionCharts( "../script/Charts/Area2D.swf", "myChartId", "100%", "540", "0" );area2D.setXMLUrl("data/area2D.xml");area2D.render("area2DChart"); 

<div id="area2DChart"></div>

<!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;            }            #area2DChart{                width:100%;            }        </style>        <script type="text/javascript">            $(function(){                var area2D = new FusionCharts( "../script/Charts/Area2D.swf", "myChartId", "100%", "540", "0" );                area2D.setXMLUrl("data/area2D.xml");                area2D.render("area2DChart");               });        </script>    </head>    <body>        <div id="area2DChart"></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.