我正在尝试创建一个带有额外Y轴的条形图,该轴轴映射了棒的%age。

这是条形图(工作并显示条形图):

<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-y-axes-chart/

但是我似乎无法生成第二个Y轴。该Y轴的底部应为0%,顶部应为100%。然后,我将提供X列具有多少%的数据。这应该作为红线绘制。

有任何想法吗?

有帮助吗?

解决方案

当前的闪存版本不可能。需要Javaversion。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top