Parameter | Type | Description | Defined By |
---|---|---|---|
align | String | Specifies the horizontal position of the legend in chart.(defaults to 'right').Available value are: @Option 'left' @Option 'center' Only applies when valign = 'top|bottom' @Option 'right' | Legend |
background_color | String | Specifies the backgroundColor for this element.(defaults to 'FDFDFD') | Painter |
border | Object | Here,specify as true by default | Painter |
color | String | Specifies the font's color for this element.(defaults to 'black') | Painter |
color_factor | float | Specifies the factor make color dark or light for this element,relative to background-color,the bigger the value you set,the larger the color changed.scope{0.01 - 0.5}.(defaults to '0.15') | Painter |
column | Number/String | Specifies the number of column.(default to 1) Note:If set to 'max',the list will be lie on the property row | Legend |
data | Array | Required,The datasource of Legend.Normally,this will given by chart.(default to undefined) | Legend |
font | String | Specifies the font of this element.(default to 'Verdana') | Component |
fontsize | Number | Specifies the font size of this element in pixels.(default to 12) | Component |
fontunit | String | Specifies the unit of font-size.(default to 'px') | Component |
fontweight | String | Specifies the font weight of this element.(default to 'normal') | Component |
gradient | Boolean | True to apply the gradient.(default to false) | Painter |
gradient_mode | String | Specifies the gradient mode of background.(defaults to 'LinearGradientUpDown') @Option 'LinearGradientUpDown' @Option 'LinearGradientDownUp' @Option 'LinearGradientLeftRight' @Option 'LinearGradientRightLeft' @Option 'RadialGradientOutIn' @Option 'RadialGradientInOut' | Painter |
legend_space | Number | Specifies the space between the sign and text.(default to 5) | Legend |
line_height | Number | Specifies the lineheight when text display multiline.(default to 16) | Legend |
listeners | Object | A config object containing one or more event handlers.(default to null) | Painter |
maxwidth | Number | Specifies the limited width.Normally,this will given by chart.(default to 0) | Legend |
offsetx | Number | Specifies Horizontal offset(x-axis) in pixel.(default to 0) | Painter |
offsety | Number | Specifies Vertical distance (y-axis) in pixel.(default to 0) | Painter |
originx | Number | If you want to totally override the positioning of the chart,you should setting it.(default to null) | Painter |
originy | Number | If you want to totally override the positioning of the chart,you should setting it.(default to null) | Painter |
padding | Number | Specifies the padding for this element in pixel,the same rule as css padding.(defaults to 10) | Painter |
row | Number/String | Specifies the number of column.(default to 'max') Note:If set to 'max',the list will be lie on the property column | Legend |
shadow | Boolean | Specifies whether the element should be show a shadow.In general there will be get a high render speed when apply false.(default to false) | Element |
shadow_blur | Number | Specifies How blur you want your shadow to be.(default to 4) | Element |
shadow_color | String | Specifies the color of your shadow is.(default to '#666666') | Element |
shadow_offsetx | Number | Specifies Horizontal distance (x-axis) between the shadow and the shape in pixel.(default to 0) | Element |
shadow_offsety | Number | Specifies Vertical distance (y-axis) between the shadow and the shape in pixel.(default to 0) | Element |
sign | String | Specifies the shape of legend' sign (default to 'square') Available value are: @Option 'round' @Option 'square' @Option 'bar' @Option 'round-bar' @Option 'square-bar' | Legend |
sign_size | Number | the size of legend' sign (default to 10) | Legend |
sign_space | Number | the distance of legend' sign and text (default to 5) | Legend |
strokeStyle | String | Specifies the default strokeStyle of the canvas's context in this element.(defaults to 'gray') | Painter |
text_with_sign_color | Boolean | If true the text's color will accord with sign's.(default to false) | Legend |
valign | String | this property specifies the vertical position of the legend in an module (defaults to 'middle'). Available value are: @Option 'top' @Option 'middle' Only applies when align = 'left|right' @Option 'bottom' | Legend |
z_index | Number | Specifies the z-index.(default to 0) | Painter |
Name | Description | Defined By |
---|---|---|
beforedraw | Fires before the element drawing.Return false from an event handler to stop the draw.
Parameter
| Painter |
click | Fires when this element is clicked
Parameter
| Painter |
draw | Fires after the element drawing when calling the draw method.
Parameter
| Painter |
initialize | Fires after the element initializing is finished this is for test
Parameter
| Element |
mousemove | Fires when the mouse move on the element
Parameter
| Painter |
mouseout | Fires when the mouse exits the element
Parameter
| Painter |
mouseover | Fires when the mouse hovers over the element
Parameter
| Painter |
parse | Fires when parse this element'data.Return text value will override existing.
Parameter
| Legend |
Name | Description | Defined By |
---|---|---|
draw | The commnd fire to draw the chart use configuration,
* this is a abstract method.Currently known,both iChart.Chart and iChart.Component implement this method. Parameter
Return
void
| Painter |
getDimension | return the component's dimension,return hold following property
* @property x:the left-top coordinate-x * @property y:the left-top coordinate-y * @property width:the width of component,note:available there applies box model * @property height:the height of component,note:available there applies box model Parameter
Return
object
| Component |