Overview  
ConfigsEventsMethods
Custom  

the customize componment

Configs
ParameterTypeDescriptionDefined By
BooleanIf true when chart animating it also invoke darw.(default to true)
Custom
FunctionSpecifies the customize function.(default to emptyFn)
Custom
FunctionSpecifies the customize event valid function.(default to undefined)
Custom
StringSpecifies the unit of font-size.(default to 'px')
Component
ObjectA config object containing one or more event handlers.(default to null)
Painter
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 : Custom  
Painter
click
Fires when this element is clicked
Parameter
  • this : Custom  
  • 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 : Custom  
Painter
initialize
Fires after the element initializing is finished this is for test
Parameter
  • this : Custom  
Element
mousemove
Fires when the mouse move on the element
Parameter
  • this : Custom  
  • e : EventObject   The mousemove event object
Painter
mouseout
Fires when the mouse exits the element
Parameter
  • this : Custom  
  • e : EventObject   The mouseout event object
Painter
mouseover
Fires when the mouse hovers over the element
Parameter
  • this : Custom  
  • 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