Sign in to follow this  
dvdutra

Pie Chart rendering differently using Flash or Javascript (with same code/data)

Recommended Posts

Hi,
 
I´m using the same code to render a Pie Chart using Flash and using Javascript (the only difference is "FusionCharts.setCurrentRenderer('javascript');}" to force Javascript), but I´m getting different results.
 
The Flash Chart shows exactly what I want, but the Javascript Chart doesn't show percentage in labels, as shown in images.
 
The showPercentageInLabel='1' doesn't work in Javascript?
 
Tks!
 
code:
<script type="text/javascript">
	var myChart = new FusionCharts( "../../FusionCharts/Pie2D.swf", "myChartId1", "240", "240", "0", "1" );
	myChart.setXMLUrl("../data/data.xml");
	myChart.render("top5_pizza");
</script>

data.xml:

<chart animation='0' caption='Entradas' subcaption='Referenciado: 172' pieRadius='55' showPercentInToolTip='0' decimals='0' forceDecimals='0' decimalSeparator=',' thousandSeparator='.' slicingDistance='8' showPercentageInLabel='1' formatNumberScale='0' showValues='1' showLabels='0' bgColor='FFFFFF' showBorder='0' startingAngle='90' showLegend='1' legendShadow = '0' legendBorderColor = 'ffffff' smartLineColor = 'ffffff'>
<set label='Outros' value='72' color='E3E3E3' />
<set label='Referenciado' value='100' color='043C6B' isSliced  = '1' />
</chart>

post-62294-0-72099900-1385673264_thumb.png

post-62294-0-59937300-1385673271_thumb.png

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