AmChart破解教程和RadarChart使用
Xml代码
1.首先上官方网站下载插件amcharts_flex_components_1.6.1.1.zip
在amcharts_flex_components_1.6.1.1.zip\Build\amChartsFB4.swc(因为我用的是Flex4)
将amChartsFB4.swc拷贝到Flex相中lib目录下面
然后写继承类:
1.我用到的是他的雷达图所以我继承破解了他的雷达图,你用到那个你就破解那个。
view sourceprint?01 package tool
02 {
03 import com.amcharts.AmRadarChart;
04
05 public class AmRadarChart extends com.amcharts.AmRadarChart
06 {
07 public function AmRadarChart()
08 {
09 super();
10 }
11 public function onClick():void{
12 this;
13 }
14 override protected function createChildren():void{
15 super.createChildren();
16 if (_amchartsLink){
17 _amchartsLink.visible=false;
18 /*
19 _amchartsLink.alpha=0;
20 _amchartsLink.width=0;
21 _amchartsLink.height=0;
22 */
23 }
24 }
25 }
26 }
2.然后我在页面应用这个破击组件
view sourceprint?01 <tool:AmRadarChartidtool:AmRadarChartid="chart" categoryField="Name" width="100%" height="235" startDuration="1">
02 <tool:valueAxes>
03 <amcharts:ValueAxis fillAlpha="0.05" fillColor="0x000000" axisAlpha="0.3" gridAlpha="0.05" fontWeight="bold" min="0"/>
04 </tool:valueAxes>
05
06 <tool:graphs>
07 <amcharts:AmGraph
08 title="客流量"
09 valueField="InSum"
10 bullet="bubble"
11 balloonText="客流量: [[value]]"/>
12 <amcharts:AmGraph
13 title="交易笔数"
14 valueField="TransactionNumber&
相关新闻>>
- 发表评论
-
- 最新评论 更多>>