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.
package tool{ import com.amcharts.AmRadarChart; public class AmRadarChart extends com.amcharts.AmRadarChart { public function AmRadarChart() { super(); } public function onClick():void{ this; } override protected function createChildren():void{ super.createChildren(); if (_amchartsLink){ _amchartsLink.visible=false; /* _amchartsLink.alpha=0; _amchartsLink.width=0; _amchartsLink.height=0; */ } } }}
2. Then I will apply this cracking component on the page.
<Tool: AmRadarChartid = "chart" categoryField = "Name" width = "100%" height = "235" startDuration = "1"> <tool: valueAxes> <amcharts: valueAxis fillAlpha = "0.05" fillColor = "0x000000" axisAlpha = "0.3" gridAlpha = "0.05" fontWeight = "bold" min = "0"/> </tool: valueAxes> <tool: graphs> <amcharts: AmGraph title = "" valueField = "InSum" bullet = "bubble" balloonText = ": [[value] "/> <amcharts: AmGraph title =" number of transactions "valueField =" TransactionNumber "bullet =" round "markerType =" square "balloonText =" number of transactions: [[value] "/> <amcharts: AmGraph title =" sales "valueField =" SalesAmount "bullet =" square "balloonText =" sales: [[value] "/> <amcharts: AmGraph title =" "valueField =" UnitAreaAttraction "bullet =" custom "markerType =" square "balloonText =": [[value] "/> <amcharts: AmGraph title =" pingxiao "valueField =" SalesPerUnitArea "bullet =" triangleDown "balloonText =" pingxiao: [[value] "/> <amcharts: AmGraph title =" bag lifting rate "valueField =" ConversionRate "bullet =" triangleUp "markerType =" square "balloonText =" bag lifting rate: [[value] "/> </tool: graphs> </tool: AmRadarChart> <amcharts: amLegend fontSize = "12" markerType = "triangleDown" dataProvider = "{chart}" align = "left" textClickEnabled = "false" width = "100%" borderAlpha = "1.0"/>