flex里面的fusioncharts有关问题

sqfStrong 程序猿  2013-02-01 01:19:38
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="com.fusioncharts.components.*">

<ns1:FusionCharts id="fc" FCChartType="MSLine" x="0" y="10" FCDataXML="_xml" width="551" height="212"/>
<mx:Script>
<![CDATA[
[Bindable]
public var _xml:String =
"<chart lineColor='#ff0000' labelStep='2' borderThickness='0' outCnvBaseFontSize='14' baseFontColor='006C61' labelDisplay='none' alternateHGridAlpha='50' divLineColor='2A807D' baseFontSize='14' showBorder='0' canvasBorderThickness='3' chartRightMargin='20' outCnvBaseFontColor='006C61' alternateHGridColor='D3EEE9' showAlternateHGridColor='1' bgAlpha='0,0' caption='抄表例日采集情况分析' showValues='0' canvasBorderColor='8ECAC8' divLineAlpha='50' numDivLines='5' divLineIsDashed='1' yAxisMaxValue='100' formatNumberScale='0' yAxisName='采集成功率(%)'>"
+"<categories >"
+"<category label='2012-02'/>"
+"<category label='2012-03'/>"
+"<category label='2012-04'/>"
+"<category label='2012-05'/>"
+"<category label='2012-06'/>"
+"<category label='2012-07'/>"
+"<category label='2012-08'/>"
+"<category label='2012-09'/>"
+"<category label='2012-10'/>"
+"<category label='2012-11'/>"
+"<category label='2012-12'/>"
+"<category label='2013-01'/>"
+"</categories>"
+"<dataset >"
+"<set label='2012-02' value='81.6'/>"
+"<set label='2012-03' value='92.92'/>"
+"<set label='2012-04' value='79.69'/>"
+"<set label='2012-05' value='80.04'/>"
+"<set label='2012-06' value='84.46'/>"
+"<set label='2012-07' value='88.38'/>"
+"<set label='2012-08' value='98.42'/>"
+"<set label='2012-09' value='102.26'/>"
+"<set label='2012-10' value='97.86'/>"
+"<set label='2012-11' value='83.17'/>"
+"<set label='2012-12' value='76.97'/>"
+"<set label='2012-13' value='104.13'/>"
+"</dataset>"
+"</chart>";

]]>
</mx:Script>
</mx:Application>
怎么曲线显示不出来,求大神赐教
...全文
196 3 点赞 打赏 收藏 举报
写回复
3 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
haolyj98 2013-02-05
反正我这段代码是可以的
  • 打赏
  • 举报
回复
haolyj98 2013-02-05
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"
		 xmlns:components="com.fusioncharts.components.*">
	<mx:Script>
		<![CDATA[
			[Bindable]
			private var columnChartXml:XML = <chart canvasPadding="10" caption="Production Forecast" yAxisName="Units" bgColor="F7F7F7, E9E9E9" numVDivLines="10" divLineAlpha="30"  labelPadding ="10" yAxisValuesPadding ="10" showValues="1" rotateValues="1" valuePosition="auto">
	        <categories>
	                <category label="2006" /> 
	                <category label="2007" /> 
	                <category label="2008" /> 
	                <category label="2009" /> 
	                <category label="2010" /> 
	                <category label="2011" /> 
	        </categories>
	
	        <dataset seriesName="Model A12" color="A66EDD" >
	                <set value="35" /> 
	                <set value="42" /> 
	                <set value="31" /> 
	                <set value="28" valuePosition="above"/> 
	                <set value="34" /> 
	                <set value="30" /> 
	        </dataset>
	
	        <dataset seriesName="Model A15" color="F6BD0F">
	                <set value="22" /> 
	                <set value="25" /> 
	                <set value="18" /> 
	                <set value="22" /> 
	                <set value="17" /> 
	                <set value="16" /> 
	        </dataset>
	
	</chart>;
			
		]]>
	</mx:Script>
	<mx:VBox width="90%" height="100%">
		<mx:Canvas width="100%" height="100%" id="columnCanvas">
			<components:FusionCharts id="fc" width="100%" height="100%" FCChartType="MSLine" FCDataXML="{columnChartXml}"/>
		</mx:Canvas>
	</mx:VBox>
</mx:HBox>
  • 打赏
  • 举报
回复
haolyj98 2013-02-05
你是不是在flex构建路径的输出文件夹下没放 fusioncharts和fusionwidgets这两个文件夹?
  • 打赏
  • 举报
回复
相关推荐
发帖
Flex
加入

4328

社区成员

多媒体/设计 Flex
申请成为版主
帖子事件
创建了帖子
2013-02-01 01:19
社区公告
暂无公告