Overview  
ConfigsEventsMethods
Label  

the label componment

Configs
ParameterTypeDescriptionDefined By
NumberOverride the default as '#efefef'.
Label
ObjectHere,specify as true by default
Painter
StringSpecifies the font's color for this element.(defaults to 'black')
Painter
floatSpecifies 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
StringSpecifies the font of this element.(default to 'Verdana')
Component
NumberSpecifies the font size of this element in pixels.(default to 12)
Component
StringSpecifies the unit of font-size.(default to 'px')
Component
StringSpecifies the font weight of this element.(default to 'normal')
Component
BooleanTrue to apply the gradient.(default to false)
Painter
StringSpecifies the gradient mode of background.(defaults to 'LinearGradientUpDown')
@Option 'LinearGradientUpDown'
@Option 'LinearGradientDownUp'
@Option 'LinearGradientLeftRight'
@Option 'LinearGradientRightLeft'
@Option 'RadialGradientOutIn'
@Option 'RadialGradientInOut'
Painter
NumberSpecifies the lineheight when text display multiline.(default to 12).
Label
NumberSpecifies the thickness of line in pixel.(default to 1).
Label
ObjectA config object containing one or more event handlers.(default to null)
Painter
NumberSpecifies Horizontal offset(x-axis) in pixel.(default to 0)
Painter
NumberOverride the default as 2 in pixel.
Label
NumberIf you want to totally override the positioning of the chart,you should setting it.(default to null)
Painter
NumberIf you want to totally override the positioning of the chart,you should setting it.(default to null)
Painter
NumberOverride the default as 2 in pixel.
Label
BooleanSpecifies 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
NumberSpecifies How blur you want your shadow to be.(default to 4)
Element
StringSpecifies the color of your shadow is.(default to '#666666')
Element
NumberSpecifies Horizontal distance (x-axis) between the shadow and the shape in pixel.(default to 0)
Element
NumberSpecifies Vertical distance (y-axis) between the shadow and the shape in pixel.(default to 0)
Element
StringSpecifies the shape of legend' sign (default to 'square').Available value are:
@Option 'round'
@Option 'square'
Label
NumberSpecifies the size of legend' sign in pixel.(default to 12)
Label
NumberSpecifies the space between the sign and text.(default to 5)
Label
StringSpecifies the default strokeStyle of the canvas's context in this element.(defaults to 'gray')
Painter
StringSpecifies the text of this label,Normally,this will given by chart.(default to '').
Label
BooleanIf true the text's color will accord with sign's.(default to false)
Label
NumberSpecifies the z-index.(default to 0)
Painter
Events
NameDescriptionDefined By
beforedraw
Fires before the element drawing.Return false from an event handler to stop the draw.
Parameter
  • this : Label  
Painter
click
Fires when this element is clicked
Parameter
  • this : Label  
  • e : EventObject   The click event object
  • param : Object   The additional parameter
Painter
draw
Fires after the element drawing when calling the draw method.
Parameter
  • this : Label  
Painter
initialize
Fires after the element initializing is finished this is for test
Parameter
  • this : Label  
Element
mousemove
Fires when the mouse move on the element
Parameter
  • this : Label  
  • e : EventObject   The mousemove event object
Painter
mouseout
Fires when the mouse exits the element
Parameter
  • this : Label  
  • e : EventObject   The mouseout event object
Painter
mouseover
Fires when the mouse hovers over the element
Parameter
  • this : Label  
  • e : EventObject   The mouseover event object
Painter
Methods
NameDescriptionDefined 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
  • None
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
  • None
Return
  object
Component
reference:Component