< previous
XML/SWF Charts Reference*1
next >
17.legend 凡例ラベル

<legend transition='string'
        delay='int'
        duration='float' 
                   
        x='int'
        y='int'
        width='int' 
        height='int' 
        
        toggle='boolean'
        layout='string'
        margin='int'
        bullet='string'
        font='string'
        bold='boolean'
        size='int'
        color='string'
        alpha='int'
        
        fill_color='string'
        fill_alpha='int'
        line_color='string'
        line_alpha='int'
        line_thickness='int'
        
        shadow='string'
        bevel='string'
        glow='string'
        blur='string'
        />

(説明)

legendは、凡例ラベルの属性を定義します。

凡例は、データシリーズ(data series)に割り当てられた色を特定する領域です。
ここでは、凡例は赤枠の白い領域です。領域は、legendx,y,width,heightパラメータで定義します。


(例)

   <!-- 凡例の属性定義。 layout:凡例の配置(horizontal/vertical)、bullet:凡例ラベル前につけるマーク
       ("square", "circle", and "line." The default is "square")、凡例ラベル文字フォント(日本語FONTは'MS ゴシック')
        凡例ラベル文字の太さbold、凡例ラベル文字サイズsize、凡例ラベル文字色color、凡例ラベル文字の不透明度alpha -->
   <legend layout='horizontal' bullet='line' font='MS ゴシック' bold='true' size='11' color='000000' alpha='65'  shadow='shadow1' />
   <legend x='60' y='20' width='300' height='20' margin='3' fill_color='FFFFFF' fill_alpha='60' line_color='FF4400'
                line_alpha='100' line_thickness='2'
       /> 
  <!-- 凡例のアニメーション表示属性定義。-->
  <legend transition='slide_left' delay='1' duration='1' 
       />
  <!-- 凡例のフィルター定義。id='shadow1' -->
  <filter>
      <bevel id='bevel2' angle='45' blurX='3' blurY='3' distance='3' highlightAlpha='50' highlightColor='ffffff' />
      <shadow id='shadow1' distance='5' angle='45' color='000000' alpha='75' blurX='10' blurY='10' />
   </filter>

XML全コード ex-col-draw.xml 

縦棒グラフサンプル(legend)


< previous このページのTOP next >

*1 XML/SWF Charts Reference原本の著作権は、http://www.maani.usが所有しています

2006.12.8  by ma3ki