Parameter | Type | Description | Defined By |
---|---|---|---|
align | String | this property specifies the horizontal alignment of chart in an module (defaults to 'center') Available value are: @Option 'left' @Option 'center' @Option 'right' | Chart |
animation | Boolean | If true element will have a animation when show, false to skip the animation.(default to false) | Chart |
animation_duration | Number | Specifies the duration when animation complete in millisecond.(default to 1000) | Chart |
animation_timing_function | String | (default to 'ease-in-out') Available value are: @Option 'easeIn' @Option 'easeOut' @Option 'easeInOut' @Option 'linear' | Chart |
background_color | String | Specifies the backgroundColor for this element.(defaults to 'FDFDFD') | Painter |
border | Object | Here,specify as true by default | Painter |
bound_event | String | the event's name trigger pie pop(default to 'click') | Pie |
color | String | Specifies the font's color for this element.(defaults to 'black') | 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 |
data | Array | Required,The datasource of Chart.must be not empty. | Chart |
decimalsnum | Number | Specifies the number of decimal when use percent.(default to 1) | Chart |
default_mouseover_css | Boolean | If true mouse change to a pointer when a mouseover fired.only available when use PC.(defaults to true) | Chart |
footnote | Object/String | Specifies the config of footnote details see iChart.Text,If given a string,it will only apply the text.note:If the text is empty,then will not display | Chart |
gradient | Boolean | True to apply the gradient.(default to false) | Painter |
gradient_mode | String | Specifies the gradient mode of background.(defaults to 'LinearGradientUpDown') @Option 'LinearGradientUpDown' @Option 'LinearGradientDownUp' @Option 'LinearGradientLeftRight' @Option 'LinearGradientRightLeft' @Option 'RadialGradientOutIn' @Option 'RadialGradientInOut' | Painter |
height | Number | Specifies the height of this canvas | Chart |
id | String | The unique id of this element (defaults to an auto-assigned id). | Chart |
increment | Number | Specifies the length when sector bounded.(default to 1/8 radius,and minimum is 5), | Pie |
intellectLayout | Boolean | when label's position in conflict.auto layout.(default to true). | Pie |
layout_distance | Number | Specifies the distance in pixels when two label is incompatible with each other.(default 4), | Pie |
legend | Object | Specifies the config of Legend.For details see iChart.Legend Note:this has a extra property named 'enable',indicate whether legend available(default to false) | Chart |
lineJoin | String | Specifies the default lineJoin of the canvas's context in this element.(defaults to 'round') | Chart |
listeners | Object | A config object containing one or more event handlers.(default to null) | Painter |
mutex | Boolean | Specifies as true it means just one piece could pop (default to false) | Pie |
offset_angle | Number | initial angle for first sector.(default to 0) | Pie |
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 |
radius | Float/String | Specifies the pie's radius.If given a percentage,it will relative to minDistance.(default to '100%') | Pie |
render | String | id of dom you want rendered(defaults ''). | Chart |
separate_angle | Number(0~90) | separate angle of all sector.(default to 0) | Pie |
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 |
showpercent | Boolean | Specifies as true to display with percent.(default to false) | Chart |
strokeStyle | String | Specifies the default strokeStyle of the canvas's context in this element.(defaults to 'gray') | Painter |
sub_option | iChart.Sector | option of sector.Note,Pie2d depend on Sector2d and pie3d depend on Sector3d.For details see iChart.Sector | Pie |
subtitle | Object/String | Specifies the config of subtitle details see iChart.Text,If given a string,it will only apply the text.note:If the title or subtitle'text is empty,then will not display | Chart |
tip | Object | Specifies the config of Tip.For details see iChart.Tip Note:this has a extra property named 'enable',indicate whether tip available(default to false) | Chart |
title | Object/String | Specifies the config of Title details see iChart.Text,If given a string,it will only apply the text.note:If the text is empty,then will not display | Chart |
turn_off_touchmove | Boolean | If true ignore the event touchmove.only available when support touchEvent.(defaults to false) | Chart |
width | Number | Specifies the width of this canvas | Chart |
yHeight | Number | Specifies the pie's thickness in pixels.(default to 30) | Pie3D |
z_index | Number | Specifies the chart's z_index.override the default as 999 to make it at top layer.(default to 999) | Chart |
zRotate | Number | Three-dimensional rotation Z in degree(angle).socpe{0-90}.(default to 45) | Pie3D |
Name | Description | Defined By |
---|---|---|
afterAnimation | Fires when this element Animation finished.Only valid when animation is true
Parameter
| Chart |
beforeAnimation | Fires before this element Animation.Only valid when animation is true
Parameter
| Chart |
beforedraw | Fires before the element drawing.Return false from an event handler to stop the draw.
Parameter
| Painter |
bound | Fires when this element' sector bounded
Parameter
| Pie |
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 |
rebound | Fires when this element' sector rebounded
Parameter
| Pie |
resize | Fires when chart resize.
Parameter
| Chart |
Name | Description | Defined By |
---|---|---|
bound | bound sector by a specific index.
Parameter
Return
void
| Pie |
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 |
eventOff | turn off the event listener
Parameter
Return
void
| Chart |
eventOn | turn on the event listener
Parameter
Return
void
| Chart |
getDrawingArea | return the main Drawing Area's dimension,return following property:
* x:the left-top coordinate-x * y:the left-top coordinate-y * width:the width of drawing area * height:the height of drawing area Parameter
Return
Object : contains dimension info
| Chart |
getFootNote | return the footnote,return undefined if unavailable
| Chart |
getSectors | Returns an array containing all sectors of this pie
Parameter
Return
Array : the collection of sectors
| Pie |
getSubTitle | return the subtitle,return undefined if unavailable
| Chart |
getTitle | return the title,return undefined if unavailable
| Chart |
load | load the new data
Parameter
Return
void
| Chart |
plugin | register the customize component or combinate with other charts
| Chart |
rebound | rebound sector by a specific index.
Parameter
Return
void
| Pie |
resize | resize the chart
Parameter
Return
void
| Chart |
setUp | set up the chart by latest configruation
Parameter
Return
void
| Chart |
toggle | Toggle sector bound or rebound by a specific index.
Parameter
Return
void
| Pie |