flex amcharts demo

水库:汛限水位;
河道:警戒水位;
<s:BorderContainer x="1" y="32"  id="teamArea" width="299" height="205" includeIn="teamstate" 
   backgroundAlpha="1" borderAlpha="1" backgroundColor="#ffffff" borderVisible="false">
<amcharts:AmLegend x="-78" y="-2" width="652" height="2" color="#666666"
   dataProvider="{riverChart}" fontSize="10" marginBottom="1"
   markerSize="8" textClickEnabled="false" textDecoration="none"
   valueText="">
</amcharts:AmLegend>
<chart:SerialChart plotAreaFillAlphas="0" startDuration="0.3"  id="riverChart" 
   categoryField="tm" dataProvider="{dayRainArr}" width="299" height="170" y="33" x="0">
<!--曲线-->
<chart:graphs>
<amcharts:AmGraph valueAxis="{lAxisId}" title="水位过程线" valueField="drp" type="line" lineColor="#0000ff" 
  lineAlpha="1"  balloonText="水位: [[value]]m" lineThickness="2"/>
<amcharts:AmGraph valueAxis="{rAxisId}" title="蓄水量" valueField="sw" type="line" lineColor="#00BB00" 
  lineAlpha="1"  balloonText="蓄水量: [[value]]万m³" lineThickness="2"/>
<amcharts:AmGraph valueAxis="{lAxisId}" title="汛限水位" valueField="sw2" type="line" lineColor="#FFB3B3" 
  lineAlpha="0.9" dashLength="5"  balloonText="汛限水位: [[value]]m" lineThickness="0"/>
</chart:graphs>

<!--坐标轴-->
<chart:valueAxes>
<amcharts:ValueAxis gridAlpha="0" title="" position="left" id="lAxisId" ></amcharts:ValueAxis>
<amcharts:ValueAxis gridAlpha="0" title="" position="right" id="rAxisId"></amcharts:ValueAxis>
</chart:valueAxes>
<chart:categoryAxis>
<amcharts:CategoryAxis gridAlpha="0" startOnAxis="true"></amcharts:CategoryAxis>
</chart:categoryAxis>
<chart:chartCursor>
<amcharts:ChartCursor/>
</chart:chartCursor>
</chart:SerialChart>
<s:Label x="3" y="27" color="#666666" fontSize="11" text="水位(m)" fontFamily="微软雅黑"/>
<s:Label x="233" y="173" color="#666666" fontSize="11" text="时间" fontFamily="微软雅黑"/>
<s:Label x="231" y="27" color="#666666" fontSize="11" text="蓄水量(万m³)" fontFamily="微软雅黑"/>
<s:Image x="125" y="27" source="assets/icon/tool.png" visible="false"/>
<s:Label x="134" y="31" color="#FFFFFF" fontSize="11" text="汛限水位:121m" visible="false"/>
</s:BorderContainer>

你可能感兴趣的:(amcharts)