JavaScript charts Flex charts WPF & Silverlight charts Flash maps Flex maps
amCharts the best javascript charts *
Home Home
Products Products
Download Download
Buy Buy
FAQ FAQ
Documentation Documentation
Support forum Support forum

2007-05-24 Displaying very different data in column chart

Column chart, unlike line chart, doesn't have two value axes. But, especially after introducing a possibility to have lines in column chart, I keep receiving questions whether this is possible  - people want to display data which has very different range and having only one axis makes it impossible. But there is one easy way to workaround this problem with version 1.1.3. Here is an example.

Check Data XML and Settings XML.

As you can see in data XML file, the real values of line chart are not the ones displayed in the chart:

<value xid="0" start="10">10000</value> <value xid="1" start="12">12000</value>

I used attribute "start", which original meaning is to set start value for floating column. Line chart pays no attention to this attribute, however you can make line's data label to display this attribute, check settings file:

<line> <data_labels> <![CDATA[<b>{start}</b>]]> </data_labels>

That's the trick. You can use "start" attribute to pass any data you want.


amCharts for WPF RSS feed Subscribe to our RSS feed to be notified about new releases and updates.
<< Previous | Next >>
© amCharts | About us | Contact and feedback: info@amcharts.com Subscribe to amcharts news feed by e-mail or RSS reader Follow amCharts on Twitter * many people say so ;)