Overview  
ConfigsEventsMethods
Scale  

this is inner use for axis

Configs
ParameterTypeDescriptionDefined By
StringSpecifies the backgroundColor for this element.(defaults to 'FDFDFD')
Painter
NumberSpecifies value of Baseline Coordinate.(default to 0)
Scale
ObjectHere,specify as true by default
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
NumberSpecifies the number of decimal.this will change along with scale.(default to 0)
Scale
NumberSpecifies the end coordinate scale value.Note either this or property of max_scale must be has the given value.(default to undefined)
Scale
StringSpecifies the unit of font-size.(default to 'px')
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
iChart.TextSpecifies label's option.
Scale
Arraythe customize labels
Scale
ObjectA config object containing one or more event handlers.(default to null)
Painter
NumberSpecifies the chart's maximal value
Scale
NumberSpecifies the chart's minimal value
Scale
NumberSpecifies Horizontal offset(x-axis) in pixel.(default to 0)
Painter
NumberSpecifies Vertical distance (y-axis) in pixel.(default to 0)
Painter
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
NumberSpecifies the padding for this element in pixel,the same rule as css padding.(defaults to 10)
Painter
StringSpecifies alignment of this scale.(default to 'left')
Scale
Booleanindicate whether the grid is accord with scale.(default to true)
Scale
StringSpecifies the color of scale.(default to 4)
Scale
BooleanTrue to display the scale line.(default to true)
Scale
NumberSpecifies the number of scale on axis.(default to 5)
Scale
NumberSpecifies the size of brush(context.linewidth).(default to 1)
Scale
NumberSpecifies the space of two scale.Note either this or property of scale_share must be has the given value.(default to undefined)
Scale
NumberSpecifies the width(length) of scale.(default to 4)
Scale
StringSpecifies the align against axis.(default to 'center') When the property of which set to 'h',Available value are:
@Option 'left'
@Option 'center'
@Option 'right'
When the property of which set to 'v', Available value are:
@Option 'top'
@Option 'center'
@Option 'bottom'
Scale
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
NumberSpecifies the start coordinate scale value.(default to 0)
Scale
StringSpecifies the default strokeStyle of the canvas's context in this element.(defaults to 'gray')
Painter
NumberSpecifies the distance to scale.(default to 6)
Scale
StringSpecifies the align against axis.(default to 'left' or 'bottom' in v mode) When the property of which set to 'h',Available value are:
@Option 'left'
@Option 'right' When the property of which set to 'v', Available value are:
@Option 'top'
@Option 'bottom'
Scale
Stringthe axis's type(default to 'h') Available value are:
@Option 'h' :horizontal
@Option 'v' :vertical
Scale
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 : Scale  
Painter
click
Fires when this element is clicked
Parameter
  • this : Scale  
  • 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 : Scale  
Painter
initialize
Fires after the element initializing is finished this is for test
Parameter
  • this : Scale  
Element
mousemove
Fires when the mouse move on the element
Parameter
  • this : Scale  
  • e : EventObject   The mousemove event object
Painter
mouseout
Fires when the mouse exits the element
Parameter
  • this : Scale  
  • e : EventObject   The mouseout event object
Painter
mouseover
Fires when the mouse hovers over the element
Parameter
  • this : Scale  
  • e : EventObject   The mouseover event object
Painter
parseText
Fires the event when parse text,you can return a object like this:{text:'',originx:100,originy:100} to override the given.
Parameter
  • text : string   item's text
  • originx : int   coordinate-x of item's text
  • originy : int   coordinate-y of item's text
  • index : int   item's index
  • last : boolean   If last item
Scale
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