婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > Flex實現(xiàn)雙軸組合圖的設(shè)計思路及代碼

Flex實現(xiàn)雙軸組合圖的設(shè)計思路及代碼

熱門標(biāo)簽:中山外呼系統(tǒng)中間件 廣州ai外呼系統(tǒng)業(yè)務(wù) 南昌crm外呼系統(tǒng)如何 外呼系統(tǒng)號碼顯示 什么行業(yè)需要電話機器人 無錫電銷外呼系統(tǒng)代理 車載電話機器人 地圖標(biāo)注多家店 天津企業(yè)外呼系統(tǒng)代理商
1、設(shè)計思路

(1)設(shè)計一個組合圖,該圖共用一個數(shù)據(jù)源
(2)組合圖是有柱狀圖和折線圖組合的
(3)柱狀圖顯示的數(shù)據(jù)是依據(jù)左邊的豎直軸,折線圖的數(shù)據(jù)依據(jù)右邊的豎直軸

2、源碼如下

DoubleY.mxml:
復(fù)制代碼 代碼如下:

?xml version="1.0" encoding="utf-8"?>
s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="100%" height="100%">
s:layout>
s:BasicLayout/>
/s:layout>
fx:Declarations>
s:SolidColor id="sc1" color="0x00BFFF" alpha=".3"/>
mx:SolidColorStroke id="s1" color="0x00BFFF" weight="2"/>
/fx:Declarations>

fx:Script>
![CDATA[
import mx.collections.ArrayCollection;

//組合圖數(shù)據(jù)綁定
[Bindable]
private var gridArray:ArrayCollection = new ArrayCollection([
{quarter:"第一季度",Monday:"78454",Tuesday:"45454",Wednesday:"12012",Thursday:"78441",Friday:"32314",Saturday:"89454",Sunday:"45421",Rate:"23"},
{quarter:"第二季度",Monday:"56444",Tuesday:"65612",Wednesday:"78454",Thursday:"45124",Friday:"35451",Saturday:"45421",Sunday:"65421",Rate:"47"},
{quarter:"第三季度",Monday:"51210",Tuesday:"94210",Wednesday:"65643",Thursday:"45011",Friday:"45122",Saturday:"45421",Sunday:"65988",Rate:"13"},
{quarter:"第四季度",Monday:"61210",Tuesday:"45122",Wednesday:"65323",Thursday:"95110",Friday:"65623",Saturday:"45111",Sunday:"65311",Rate:"17"}
]);
]]>
/fx:Script>

mx:VBox width="100%" height="100%">
mx:ColumnChart id="chart" width="100%" height="90%" showDataTips="true" fontSize="16" dataProvider="{gridArray}">
!--設(shè)置水平坐標(biāo)軸-->
mx:horizontalAxis>
mx:CategoryAxis dataProvider="{}" categoryField="quarter"/>
/mx:horizontalAxis>
!--設(shè)置左豎直坐標(biāo)軸的最大值和最小值-->
mx:verticalAxis>
mx:LinearAxis minimum="0.00" maximum="100000.00"/>
/mx:verticalAxis>
!--設(shè)置左豎直坐標(biāo)軸的柱形圖-->
mx:series>
mx:ColumnSeries id="column1" xField="quarter" yField="Monday" displayName="星期一"/>
mx:ColumnSeries id="column2" xField="quarter" yField="Tuesday" displayName="星期二"/>
mx:ColumnSeries id="column3" xField="quarter" yField="Wednesday" displayName="星期三"/>
mx:ColumnSeries id="column4" xField="quarter" yField="Thursday" displayName="星期四"/>
mx:ColumnSeries id="column5" xField="quarter" yField="Friday" displayName="星期六"/>
mx:ColumnSeries id="column6" xField="quarter" yField="Saturday" displayName="星期七"/>
mx:ColumnSeries id="column7" xField="quarter" yField="Sunday" displayName="星期八"/>
/mx:series>
!--設(shè)置右豎直坐標(biāo)軸的最大值和最小值-->
mx:secondVerticalAxis>
mx:LinearAxis minimum="0.00" maximum="100.00"/>
/mx:secondVerticalAxis>
!--設(shè)置右豎直坐標(biāo)軸的折線-->
mx:secondSeries>
mx:LineSeries id="line" dataProvider="{gridArray}" xField="quarter" yField="Rate" displayName="比率"/>
/mx:secondSeries>
/mx:ColumnChart>
!--設(shè)置Legend屬性-->
mx:HBox>
s:Label width="25"/>
mx:Legend dataProvider="{chart}" fontSize="20" width="100%" height="30" direction="horizontal" horizontalGap="45" verticalGap="45"/>
/mx:HBox>

/mx:VBox>
/s:Application>

3、顯示結(jié)果

標(biāo)簽:海西 滄州 欽州 攀枝花 仙桃 佛山 呂梁 泰州

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Flex實現(xiàn)雙軸組合圖的設(shè)計思路及代碼》,本文關(guān)鍵詞  Flex,實現(xiàn),雙軸,組合圖,的,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《Flex實現(xiàn)雙軸組合圖的設(shè)計思路及代碼》相關(guān)的同類信息!
  • 本頁收集關(guān)于Flex實現(xiàn)雙軸組合圖的設(shè)計思路及代碼的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 德保县| 铁岭县| 徐州市| 信阳市| 东源县| 凤翔县| 双牌县| 象山县| 叙永县| 蒙阴县| 神池县| 平舆县| 壤塘县| 兰州市| 静宁县| 班戈县| 策勒县| 镇安县| 恩施市| 西丰县| 屏东县| 济源市| 黑山县| 正蓝旗| 乐平市| 正定县| 曲沃县| 桂平市| 北流市| 鲁甸县| 绿春县| 元朗区| 清镇市| 明光市| 沙雅县| 砀山县| 久治县| 贡觉县| 南宫市| 房产| 嘉善县|