Real AmChart cracking tutorial and RadarChart usage)

Source: Internet
Author: User

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"/>

  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.