Sign in to follow this  
trojnfn

2nd Y axis

Recommended Posts

I am new to fusioncharts and xml.

I have a chart with combination bars and lines. The y axis is the total count for each bar and the line represents a percentage for each bar.

I want a second y axis to show the percentage range 0 -100 %

The problem is that when I include the xml to show the 2nd y axsis, the lines are behind the bars, and when I specifiy the second y axis as percentage, it turns the bar values into percentages instead of the line.

This seems simple enought but I cannot get it to work. Can somebody please help ?

I am using Coldfusion.

Share this post


Link to post
Share on other sites
Guest Rajroop

Hello,

 

 

 

Welcome to FusionCharts. :)

 

 

 

Could you please specify the parentYAxis attribute in the line <dataset> element? This attribute allows you to set the parent axis of the dataset - P (primary) or S (secondary).

 

 

 

In reference to your first query, could you please send us the XML that you are working on so we may have a look at what the problem may be?

 

 

 

Looking forward to your reply. :)

Share this post


Link to post
Share on other sites

Thanks for the response. Here is the xml code that I am using :

<?xml version="1.0" encoding="UTF-8"?>

<frameChart is3d="false" >

<yAxis scaleMin="0" scaleMax="500">

<labelStyle color="black"/>

</yAxis>

<yAxis2 scaleMin="0" scaleMax="1000">

<labelStyle color="black" />

<labelFormat style="percentage"/>

<titleStyle font="Arial-12">Total Percentage</titleStyle>

</yAxis2>

<xAxis>

<labelStyle color="black" orientation="slanted"/>

</xAxis>

<elements place="Default" shape="line" drawShadow="false">

<series index="1" shape="line" isSecondAxis="true"/>

</elements>

</frameChart>

 

I am using coldfusion and cfcharts along with this xml, but need to switch to fusioncharts and I have no idea where to begin.

Share this post


Link to post
Share on other sites

hi,

 

 

 

Hope these links might help you out.

 

 

 

http://www.fusioncharts.com/docs

 

 

 

http://www.fusioncharts.com/docs/Contents/CFM_BasicExample.html

 

http://www.fusioncharts.com/docs/Contents/CFM_Array.html

 

http://www.fusioncharts.com/docs/Contents/CFM_Form.html

 

http://www.fusioncharts.com/docs/Contents/CFM_DB.html

 

http://www.fusioncharts.com/docs/Contents/CFM_Drill.html

 

http://www.fusioncharts.com/docs/Contents/CFM_JS_URL.html

 

http://www.fusioncharts.com/docs/Contents/CFM_JS_XML.html

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this