Parameter | Type | Description | Defined By |
---|---|---|---|
background_color | String | Specifies the backgroundColor for this element.(defaults to 'FDFDFD') | Painter |
border | Object | Here,specify as true by default | 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 |
cylinder_height | Float (0~) | Specifies the sector's height(thickness).Normally,this will given by chart.(default to 0) | Sector3D |
donutwidth | Number | Specifies the width when show a donut.only applies when it not 0.(default to 0) | Sector |
endAngle | Number | Specifies the end angle of this sector.Normally,this will given by chart.(default to 0) | Sector |
expand | Boolean | True to bound this sector.(default to false) | Sector |
fontunit | String | Specifies the unit of font-size.(default to 'px') | Component |
gradient | Boolean | True to apply the gradient.(default to false) | Painter |
gradient_mode | String | Specifies the gradient mode of background.(defaults to 'RadialGradientOutIn') @Option 'RadialGradientOutIn' @Option 'RadialGradientInOut' | Sector |
ignored | Boolean | True will not darw.(default to false) | Sector |
label | iChart.Label | Specifies the config of label.when mini_label is unavailable,there will as a iChart.Label. note:set false to make label disabled. | Sector |
listeners | Object | A config object containing one or more event handlers.(default to null) | Painter |
middleAngle | Number | middleAngle = (endAngle - startAngle)/2.Normally,this will given by chart.(default to 0) | Sector |
mini_label | iChart.Text | Specifies the config of label.when mini_label is a object,there will as a iChart.Text.(default to false) note:set false to make minilabel disabled. | Sector |
mini_label_threshold_angle | Number | Specifies the threshold value in angle that applies mini_label.(default to 15) | Sector |
name | String | Specifies the name of this element,Normally,this will given by chart.(default to '') | Sector |
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 |
semi_major_axis | Number | Specifies major semiaxis of ellipse.Normally,this will given by chart.(default to 0) | Sector3D |
semi_minor_axis | Number | Specifies minor semiaxis of ellipse.Normally,this will given by chart.(default to 0) | Sector3D |
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 |
startAngle | Number | Specifies the start angle of this sector.Normally,this will given by chart.(default to 0) | Sector |
strokeStyle | String | Specifies the default strokeStyle of the canvas's context in this element.(defaults to 'gray') | Painter |
totalAngle | Number | Specifies total angle of this sector,totalAngle = (endAngle - startAngle).Normally,this will given by chart.(default to 0) | Sector |
value | String | Specifies the value of this element,Normally,this will given by chart.(default to '') | Sector |
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 |
parseText | Fires when parse this label's data.Return value will override existing. Only valid when label is available
Parameter
| Sector |
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 |
getDimension | get the sector's dimension,return hold following property
* @property x:the x-coordinate of the center of the sector * @property y:the y-coordinate of the center of the sector * @property startAngle:The starting angle, in radians (0 is at the 3 o'clock position of the arc's circle) * @property endAngle:the ending angle, in radians * @property middleAngle:the middle angle, in radians Parameter
Return
object
| Sector |