2011-09-05 61 views
0

我想創建一個帶額外Y軸的條形圖,用於映射酒吧的%-age。amCharts,具有2個y軸的列

這是條形圖(作品和顯示條):

<settings> 
    <colors>FFCC00</colors> 
    <background> 
     <alpha>100</alpha> 
     <border_alpha>20</border_alpha> 
    </background> 
    <grid> 
     <category> 
      <dashed>1</dashed> 
     </category> 
     <value> 
      <dashed>1</dashed> 
     </value> 
    </grid> 
    <axes> 
     <category> 
      <width>1</width> 
      <color>E7E7E7</color> 
     </category>   
    </axes> 
    <values> 
     <category> 
      <rotate>42</rotate> 
     </category> 
     <value> 
      <min>0</min> 
     </value> 
    </values> 
    <depth>15</depth> 
    <column> 
     <width>85</width> 
     <balloon_text>{value} user(s)</balloon_text> 
     <grow_time>3</grow_time> 
    </column> 
    <graphs> 
     <graph gid="0"> 
      <title>Users</title> 
      <color>3333CC</color> 
      <alpha>63</alpha> 
     </graph> 
    </graphs> 
    <labels> 
     <label lid="0"> 
      <text><![CDATA[<b>User distribution</b>]]></text> 
      <y>18</y> 
      <text_color>000000</text_color> 
      <text_size>13</text_size> 
      <align>center</align> 
     </label> 
    </labels> 
</settings> 

下面是數據:

<chart> 
    <series> 
     <value xid="0">Afghanistan</value> 
     <value xid="1">Andorra</value> 
     <value xid="2">Australia</value> 
     <value xid="3">Burundi</value> 
     <value xid="4">China</value> 
     <value xid="5">Denmark</value>   
    </series> 
    <graphs> 
     <graph gid="0"> 
      <value xid="0">7</value> 
      <value xid="1">3</value> 
      <value xid="2">2</value> 
      <value xid="3">12</value>    
      <value xid="4">2</value> 
      <value xid="5">6</value>    
     </graph> 
    </graphs> 
</chart> 

什麼我想要做的是這樣的: http://www.amcharts.com/line/two-y-axes-chart/

但我似乎無法生成第二個Y軸。 這個y軸應該有0%在底部和100%在頂部。然後我將提供列x有多少%的數據。這應該被畫成紅線。

任何想法?

回答

0

當前Flash版本不可能。需要Javaversion。