XML/SWF Charts| CSS/XML Timeline Eons(New)| Timeline Eons| SlickBoard

 < previousnext > 

 

legend

 

<legend transition='string'
        delay='int'
        duration='float' 
                   
        x='int'
        y='int'
        width='int' 
        height='int' 
        
        toggle='boolean'
        toggle_children='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'
        />  
                                 


Description

legend sets the legend's attributes. The legend is the area that identifies the colors assigned to the graphs. It is the red area here:

 

Legends are available in all chart types except for candlestick, floating, and image charts.

  • transition: The transition effect used to show the legend. Valid values are dissolve, drop, spin, scale, zoom, blink, slide_right, slide_left, slide_up, slide_down, and none. The default is none, which draws the legend immediately without a transition.

  • delay: The delay in seconds before starting the transition. The default is zero.

  • duration: The transition's duration in seconds. The default is 1.

  • x: The horizontal position of the legend's upper left corner relative to the upper left corner of the background (0, 0).

  • y: The vertical position of the legend's upper left corner relative to the upper left corner of the background (0, 0).

  • width: The legend's width. The default width is calculated to fit within the background. If the legend's rectangle is too small for its content, then it expands as necessary.

  • height: The legend's height. The default width is calculated to fit within the background. If the legend's rectangle is too small for its content, then it expands as necessary.

  • toggle: A boolean that determines whether to enable clicking on legend labels to turn on or off series graphics. Valid values are true or false. The default is true (enable this feature).

  • toggle_children: A boolean that determines whether to toggle children charts together with the parent or not (see composite charts). Valid values are true or false. The default is false.

  • layout: This indicates if the legend is visible, and whether it is horizontal or vertical. Valid values are horizontal, vertical, and hide. The default is vertical for pie charts, and horizontal for all other charts.

  • margin: The space between the legend's edge and its content. The default is 5.

  • bullet: Determines the bullet shape. Valid values are square, circle, and line. The default is square.

  • font: The font used in the legend's labels (see Fonts). The default is Arial.

  • bold: A boolean that indicates whether the font is bold or not. Valid values are true or false. The default is true.

  • size: The font's size. This also affects the size of the legend's color squares. The default font size is calculated based on the background size.

  • color: The font's color. This is a string holding triple hexadecimal values representing the red, green, and blue components of a color. The default is "000000" (black).

  • alpha: This affects the labels' transparency, only when the embedded font is used (see Fonts). Valid values are 0 (fully transparent) to 100 (fully opaque). The default is 90.

  • fill_color: The legend's background color. This is a string holding triple hexadecimal values representing the red, green, and blue components of a color. The default is "FFFFFF" (white).

  • fill_alpha: The background's transparency. Valid values are 0 (fully transparent) to 100 (fully opaque). The default is 30.

  • line_color: The border's color. This is a string holding triple hexadecimal values representing the red, green, and blue components of a color. The default is "000000" (black).

  • line_alpha: The border's transparency value. Valid values are 0 (fully transparent) to 100 (fully opaque). The default is 0.

  • line_thickness: The border's line thickness. Valid values are 0 and above. The default is 1.

  • shadow: The ID of a shadow filter to apply to the legend. This is omitted by default (no shadow).

  • bevel: The ID of a bevel filter to apply to the legend. This is omitted by default (no bevel).

  • glow: The ID of a glow filter to apply to the legend. This is omitted by default (no glow).

  • blur: The ID of a blur filter to apply to the legend. This is omitted by default (no blur).

 

 

Example

<chart>

   <!-- slide the legend left -->
   <legend transition='slide_left' delay='2' duration='1' /> 

</chart>

 


<chart>

   <!-- vertical, red legend labels, with circle bullets -->
   <legend layout='vertical' 
           width='100'
           bullet='circle'
           font='arial'
           bold='true'
           size='12'
           color='FF0000'
           alpha='90'
           /> 

</chart>

 


<chart>

   <!-- white legend bg & red frame across the entire top -->
   <legend x='5'
           y='5'
           width='390' 
           height='10' 
           margin='5'
           fill_color='FFFFFF'
           fill_alpha='100'
           line_color='FF4400'
           line_alpha='100'
           line_thickness='2'
           /> 

</chart>

 

 < previousnext > 


Copyright © 2003-2017, maani.us