Overview  
ConfigsEventsMethods
LineSegment  

the line segment componment

Configs
ParameterTypeDescriptionDefined By
StringSpecifies the bgcolor when applies a Area.If not given,use lighter bgcolor of line.(default to null)
LineSegment
StringSpecifies the backgroundColor for this element.(defaults to 'FDFDFD')
Painter
ObjectHere,specify as true by default
Painter
NumberSpecifies the default linewidth of the canvas's context in this element.(defaults to 1)
LineSegment
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 valid range of x-direction.(default to 0)
LineSegment
NumberSpecifies the valid range of y-direction.(default to 0)
LineSegment
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
BooleanIf true the centre of point will be hollow.(default to true)
LineSegment
StringSpecifies the bgcolor when hollow applies true.(default to '#FEFEFE')
LineSegment
BooleanIf true the color of the centre of point will be hollow_color.else will be background_color.(default to true)
LineSegment
BooleanIf true there show a point when Line-line intersection(default to true)
LineSegment
iChart.TextSpecifies the config of label,set false to make label disabled.
LineSegment
BooleanIf true tip show when the mouse must enter the valid distance of axis y.(default to false)
LineSegment
ObjectA config object containing one or more event handlers.(default to null)
Painter
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
NumberSpecifies the size of point.(default size 6).Only applies when intersection is true
LineSegment
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
NumberOverride the default as 1
LineSegment
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
NumberOverride the default as 1
LineSegment
StringSpecifies the shape of two line segment' point(default to 'round').Only applies when intersection is true Available value are:
@Option 'round'
LineSegment
BooleanIf true Line will smooth.(default to false)
LineSegment
NumberSpecifies smoothness of line will be.(default to 1.5)
1 means control points midway between points, 2 means 1/3 from the point,formula is 1/(smoothing + 1) from the point
LineSegment
StringSpecifies the default strokeStyle of the canvas's context in this element.(defaults to 'gray')
Painter
NumberSpecifies the space between the tip and point.(default to 2)
LineSegment
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 : LineSegment  
Painter
click
Fires when this element is clicked
Parameter
  • this : LineSegment  
  • 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 : LineSegment  
Painter
initialize
Fires after the element initializing is finished this is for test
Parameter
  • this : LineSegment  
Element
mousemove
Fires when the mouse move on the element
Parameter
  • this : LineSegment  
  • e : EventObject   The mousemove event object
Painter
mouseout
Fires when the mouse exits the element
Parameter
  • this : LineSegment  
  • e : EventObject   The mouseout event object
Painter
mouseover
Fires when the mouse hovers over the element
Parameter
  • this : LineSegment  
  • e : EventObject   The mouseover event object
Painter
parseText
Fires when parse this label's data.Return value will override existing.
Parameter
LineSegment
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