Xml Code
1. Download the plug-in amcharts_flex_components_1.6.1.1.zip from the official website
In amcharts_flex_components_1.6.1.1.zip \ Build \ amChartsFB4.swc (because I use Flex4)
Copy amChartsFB4.swc to the lib directory in the Flex phase.
Then write the inheritance class:
1. I used his radar chart, So I inherited and cracked his radar chart. If you used it, you would crack it.
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. Then I will apply this cracking component on the page.
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 = "customer traffic"
09 valueField = "InSum"
10 bullet = "bubble"
11 balloonText = "Passenger Flow: [value]"/>
12 <amcharts: AmGraph
13 title = "number of transactions"
14 valueField = "TransactionNumber"
15 bullet = "round"
16 markerType = "square"
17 balloonText = "number of transactions: [[value]"/>
18 <amcharts: AmGraph
19 title = "sales"
20 valueField = "SalesAmount"
21 bullet = "square"
22 balloonText = "sales: [value]"/>
23 <amcharts: AmGraph
24 title = "customer benefits"
25 valueField = "UnitAreaAttraction"
26 bullet = "custom"
27 markerType = "square"
28 balloonText = "concentration: [[value]"/>
29 <amcharts: AmGraph
30 title = "pingxiao"
31 valueField = "SalesPerUnitArea"
32 bullet = "triangleDown"
33 balloonText = "pingxiao: [[value]"/>
34 <amcharts: AmGraph
35 title = "bag-lifting rate"
36 valueField = "ConversionRate"
37 bullet = "triangleUp"
38 markerType = "square"
39 balloonText = "bag-lifting rate: [[value]"/>
40 </tool: graphs>
41
42 </tool: AmRadarChart>
43 <amcharts: amLegend fontSize = "12" markerType = "triangleDown" dataProvider = "{chart}" align = "left" textClickEnabled = "false" width = "100%" borderAlpha = "1.0"/>
Author: "AlecRichard's Blog"