visibleequity

Chart Rendering Javascript Vs Flash

Recommended Posts

Please look at the attached images. When our charts are rendering in javascript, the labels lay on top of the chart as opposed to on the side as you see in the flash chart. Does anyone have ideas on what we can do to fix this?

 

Thanks

 

Here is the code:

 

<div id="chartDiv" align="center"></div>

       	<script type="text/javascript">
         	<!--
         	FusionCharts._fallbackJSChartWhenNoFlash();
      		var myChart = new FusionCharts("../FusionCharts/Pie2D.swf", "chartId", "450", "220", "0", "0");
      		myChart.setDataXML("<chart caption='Unpaid Balance' numberPrefix=' bgColor='FFFFFF' showBorder='0'><set label='1-14' value='7.666721286E7' /><set label='15-29' value='1.1024216313E8' /><set label='30-59' value='6.107525353E7' /><set label='60-89' value='2.04661962E7' /><set label='90-119' value='1.181278566E7' /><set label='120-179' value='4718099.38' /><set label='180-359' value='8715898.09' /><set label='>= 360' value='4833479.03' /></chart>");
      		myChart.render("chartDiv");
         	-->
       	</script>

post-10281-075773400 1296619048_thumb.png

post-10281-001863600 1296619055_thumb.png

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

Please find the modified code attached.

 

The code is working fine from our end.

 

Hope this helps.smile.gif

Pie.html

Share this post


Link to post
Share on other sites

Angie,

 

I tried your modified code and we are still getting the same thing, with the chart labels on top of the chart instead of out to the side. See my code below

 

            

<script type="text/javascript" src="../FusionCharts/FusionCharts.js"> </script> 
           <div id="chartDiv" align="center"></div>
           <c:if test="${chartXml != null}">
             <script type="text/javascript">
               <!--
                var myChart = new FusionCharts("../FusionCharts/Pie2D.swf", "chartId", "450", "220", "0", "1");
                myChart.setDataXML("${chartXml}");
                myChart.render("chartDiv");
               -->
             </script>
           </c:if>

 

 

 

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

Please find the modified code attached.

 

The code is working fine from our end.

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

This is a known issue of FusionCharts JavaScript version.

 

We will try to fix this issue in our next release.

 

Thank you very much for your continued patience and patronage.

 

Hope you have a great day!

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