问题描述
调用哪些属性?最好贴点代码,谢谢
解决方案
解决方案二:
多添加一个Series,绑定数据就行了foreach(DataRowdrintable.Rows){Series[1].Points.AddXY(dr[i].ToString(),dr[j].ToString());Series[2].Points.AddXY(dr[i].ToString(),dr[j].ToString());}dr[i].ToString(),dr[j].ToString()
解决方案三:
具体我也没试过嘿嘿
解决方案四:
<?xmlversion="1.0"encoding="utf-8"?><s:Applicationxmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="library://ns.adobe.com/flex/spark"xmlns:mx="library://ns.adobe.com/flex/mx"minWidth="955"minHeight="600"xmlns:amcharts="http://www.amcharts.com/com_internal"backgroundColor="#FFFFFF"creationComplete="{generateChartData()}"width="100%"height="100%"><fx:Declarations><!--将非可视元素(例如服务、值对象)放在此处--></fx:Declarations><fx:Script><![CDATA[importcom.amcharts.chartClasses.AmGraph;importmx.collections.ArrayCollection;[Bindable]privatevarchartData:ArrayCollection=newArrayCollection();//generatesomerandomdata,quitedifferentrangeprivatefunctiongenerateChartData():void{varfirstDate:Date=newDate();firstDate.setDate(firstDate.getDate()-100);for(vari:Number=0;i<100;i++){varnewDate:Date=newDate(firstDate);newDate.setDate(newDate.getDate()+i);varvisits:Number=Math.round(Math.random()*40)+100;varhits:Number=Math.round(Math.random()*80)+500;varviews:Number=Math.round(Math.random()*6000);chartData.addItem({date:newDate,visits:visits,hits:hits,views:views});}}privatefunctionzoom():void{chart.zoomToIndexes(0,20);}privatevar_newValueAxis:ValueAxis;privatefunctionaddValueAxis():void{_newValueAxis=newValueAxis();_newValueAxis.offset=50;_newValueAxis.setStyle("gridAlpha",0);_newValueAxis.setStyle("axisColor",0xB0DE09);_newValueAxis.setStyle("axisThickness",2);chart.addValueAxis(_newValueAxis);vargraph:AmGraph=newAmGraph();graph.valueField="views";graph.setStyle("bullet","triangleUp");graph.setStyle("hideBulletsCount",30);graph.type="smoothedLine";graph.valueAxis=_newValueAxis;chart.addGraph(graph);addAxis.enabled=false;removeAxis.enabled=true;}privatefunctionremoveValueAxis():void{chart.removeValueAxis(_newValueAxis);addAxis.enabled=true;removeAxis.enabled=false;}]]></fx:Script><mx:VBoxwidth="100%"height="100%"><amcharts:AmSerialChartdataUpdated="{zoom()}"id="chart"width="100%"height="100%"dataProvider="{chartData}"categoryField="date"><amcharts:graphs><!--Incaseyouhavemorethenonevalueaxis,youshouldsetvalueAxisforthegraph--><amcharts:AmGraphtitle="Visits"valueAxis="{v1}"valueField="visits"type="smoothedLine"bullet="round"hideBulletsCount="30"/><amcharts:AmGraphtitle="Visits"valueAxis="{v2}"valueField="hits"type="smoothedLine"bullet="square"hideBulletsCount="30"/></amcharts:graphs><!--youcanhaveanynumberofvalueaxes.Ifyouplacevalueaxesonthesameside,youcanmoveaxisbysetting"offset"property--><amcharts:valueAxes><amcharts:ValueAxisid="v1"axisColor="#FF6600"title="ffff下行ffffffff"axisThickness="10"/><amcharts:ValueAxisid="v2"position="right"title="下行2ddddd"axisColor="#FCD202"gridAlpha="10"axisThickness="10"/></amcharts:valueAxes><amcharts:categoryAxis><amcharts:CategoryAxisparseDates="true"minPeriod="ss"gridCount="13"/></amcharts:categoryAxis><amcharts:chartCursor><amcharts:ChartCursorcursorPosition="mouse"/></amcharts:chartCursor><amcharts:chartScrollbar><amcharts:ChartScrollbarheight="15"/></amcharts:chartScrollbar></amcharts:AmSerialChart><mx:HBox><mx:Spacerwidth="35"/><mx:Buttonid="addAxis"label="addvalueaxis"click="{addValueAxis()}"/><mx:Buttonenabled="false"id="removeAxis"label="removevalueaxis"click="{removeValueAxis()}"/></mx:HBox><mx:Spacerheight="15"/></mx:VBox></s:Application>
解决方案五:
能不能你使用的amchartFB.swc文件给我,我的好像有点问题