I'm trying to implement a bar / column chart using the own tool from amCharts that uses XML but not I'm able to edit it to stick with a specific bar. What would be the simplest solution for implementation using amCharts?
I'm trying to implement a bar / column chart using the own tool from amCharts that uses XML but not I'm able to edit it to stick with a specific bar. What would be the simplest solution for implementation using amCharts?
You can try to use only one dataset (a graph
node). For example, in XML Data use something like the following:
<chart>
<series>
<value xid="0">Entidade 1</value>
<value xid="1">Entidade 2</value>
<value xid="2">Entidade 3</value>
<value xid="3">Entidade 4</value>
<value xid="4">Entidade 5</value>
</series>
<graphs>
<graph gid="0">
<value xid="0">69</value>
<value xid="1">101</value>
<value xid="2">66</value>
<value xid="3">23</value>
<value xid="4">41</value>
</graph>
</graphs>
</chart>
Remembering that the ID (and also the name and color) of the dataset is defined in XML Settings:
...
<graph gid="0">
<title>Meu Gráfico</title>
<color>ADD981</color>
</graph>
...
Resulting: