<? Xml version = "1.0" encoding = "UTF-8"?> <Chart caption = 'annual fruit output in 2013 'xAxisName = 'fruit name' yAxisName = 'fruit production' baseFont = ''baseFontSize = '12' showValues = '0' baseFontColor =' #00FF33 'outcnvbasefont = ''labels = '14' labels =' # 0000FF 'showlabels = '1' useEllipsesWhenOverflow = '1' rotateLabels = '1' showYAxisValues = '1' showliits = '1' adjust = '1' adjustDiv = '1' rotateYAxisName = '1' defaultAnimation = '1' yAxisMinValue = '0' yAxisMaxValue = '000000' setAdaptiveYMin = '1' centerYaxisName = '1' bgColor = '# 0000FF 'bgalpha = '50' bgRatio = '50' bgAngle = '90' canvasBgColor =' # EE7700 'showvlinelabelborder = '1' drawAnchors = '1 'anchorsides = '8' anchorRadius = '10' anchorBorderColor = '# EEEE00 'numdivlines = '8' divLineIsDashed = '1' numVDivLines = '8' labels = '1' labels =' 1 'vdivlinealpha = '50' vDivLineThickness = '1' showToolTip = '1'> <set label = 'apple' value = '000000'/> <set label = 'orange' value = '000000'/> <set label = 'peach 'value = '000000'/> <set label = 'lychee' value = '000000'/> <set label = 'pears 'value = '000000'/> <set label = 'plum 'value = '000000'/> <set label = 'mango' value = '000000'/> <set label = 'banana 'value = '000000'/> <set label = 'pineapple 'value = '000000'/> <set label = 'bodhi' value = '000000'/> <set label = 'cherries 'value = '000000'/> <set label = 'Grape' value = '000000'/> <trendLines> <line startValue = '000000' color = '000000' 'displayvalue = 'target'/> </trendLines> <styles> <definition> <style name = 'canvasanim 'type = 'animation 'Param =' _ xScale 'start = '0 'duration = '1'/> </definition> <application> <apply toObject = 'canvas 'styles = 'canvasanim '/> </application> </styles> </chart>
var area2D = new FusionCharts( "../script/Charts/Area2D.swf", "myChartId", "100%", "540", "0" );area2D.setXMLUrl("data/area2D.xml");area2D.render("area2DChart");
<div id="area2DChart"></div>
<! DOCTYPE html> <! -- To change this license header, choose License Headers in Project Properties. to change this template file, choose Tools | Templatesand open the template in the editor. -->