Sign in to follow this  
Peepingtom

Javascript Rendering And Pie Legend

Recommended Posts

Hello Fusioncharts Team =),

 

I have a little issue with the rendering in javascript of a pie chart.

I set legend to true in the param but no legend appears in the rendering, is that a known issue ?

 

I'm using V3.2.1, here the sample of my code.

 

   <script type="text/javascript">
      <!--
        FusionCharts.setCurrentRenderer('javascript');
     // -->  
   </script>      
<div id="Pie2D1Div">
Chart.
</div>
<script type="text/javascript" >
var chart_Pie2D1 = new FusionCharts("../charts/Pie2D.swf", "Pie2D1", "190", "220", "0", "0", "","noScale","EN"); 
chart_Pie2D1.setTransparent("true");
//Provide entire XML data using dataXML method
chart_Pie2D1.setDataXML("<chart pieRadius='65' showLabels='0' bgColor='FFFFFF' bgAlpha='0' showBorder='0' enableSmartLabels='0' showValues='0' slicingDistance='10' use3DLighting='0' plotBorderAlpha='0' showlegend='1' legendPosition='BOTTOM' imageSave='1' imageSaveURL='../Saving_Charts/FusionChartsSave.php' exportAtClient='0' exportAction='save' exportFileName='global_pie_cp15381' chartRightMargin='20' chartTopMargin='0'  ><set  value='97.129' name=' Email Delivres' color='76BB03'  /><set  value='1.914' name='Hard-Bounces' isSliced='1' color='5D5A5A'  /><set  value='0.957' name='Soft-Bounces' color='000000'  /></chart>");
chart_Pie2D1.render("Pie2D1Div");
</script>

 

Is there something wrong in it ? Or legend for Pie Chart are not yet supported ?

 

Anyway thank you for you great work :(

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your response.

 

Please drop a mail at: [email protected] mentioning your OrderID and this forum thread for our reference.

 

We will provide you the licensed JS files.

 

Looking forward to your mail.

Share this post


Link to post
Share on other sites

Hi,

 

Thanks again for the quick providing of the licensed latest Js files.

I'm still having a little problem width some pie legend (see picture).

 

Here a sample of my code. :(

 

<!-- START Script Block for Chart Pie2D1 --> 

<div id="Pie2D1Div">
Chart.
</div>
<script type="text/javascript" >
           FusionCharts.setCurrentRenderer('javascript');
var chart_Pie2D1 = new FusionCharts("../charts/Pie2D.swf", "Pie2D1", "300", "300", "0", "0", "","noScale","EN"); 
chart_Pie2D1.setTransparent("true");
//Provide entire XML data using dataXML method
chart_Pie2D1.setDataXML("<chart pieRadius='85' showLabels='0' bgColor='FFFFFF' bgAlpha='0' showBorder='1' enableSmartLabels='0' showValues='0' slicingDistance='0' use3DLighting='0' plotBorderAlpha='0' showlegend='1' legendNumColumns='1' minimiseWrappingInLegend='1' legendPosition='RIGHT' imageSave='1' imageSaveURL='../Saving_Charts/FusionChartsSave.php' exportHandler='http://powow3.iroquois.fr/export/FCExporter.php' exportEnabled='0' exportAtClient='0' exportAction='save' exportFileName='2Dpie_clics_cp15359' chartTopMargin='0' chartBottomMargin='10' chartLeftMargin='0'  ><set  value='0' name=' contact'  /><set  value='0' name=' http://www.pragmata.fr/sabrie/ML2.png'  /><set  value='0' name=' http://concessions.peugeot.fr/sabrie.sucy/vehicules-neufs/stock-vehicules-neufs-peugeot/'  /><set  value='0' name=' http://concessions.peugeot.fr/sabrie.sucy/vehicules-neufs/offres-commerciales-peugeot/aff-de-pro-mars-2011'  /><set  value='12.389' name=' rdv'  /><set  value='0' name=' http://concessions.peugeot.fr/sabrie.sucy/apres-vente/offres-forfaits-apres-vente/'  /><set  value='1.77' name=' renseignement'  /><set  value='23.894' name=' desabonnement'  /><set  value='7.08' name=' site sabrie'  /><set  value='23.894' name=' sabrie occasion'  /><set  value='11.504' name=' sabrie VN'  /><set  value='19.469' name=' serveur pragmata'  /></chart>");
chart_Pie2D1.render("Pie2D1Div");
</script>

<!-- END Script Block for Chart Pie2D1 -->

post-4221-046612200 1308671144_thumb.jpg

Share this post


Link to post
Share on other sites

Hi,

 

Could you please confirm if you are pointing at the cropped label issue?

 

In case yes, please note that we are currently working on the label management and hope to come up with the solution to this in the next upgraded version, i.e FusionCharts v3.2.2.

 

We shall keep you updated on the same. Thank you for your continued patience and patronage.

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