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 |
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 |
column_space | Number | the space of each column.this option is readOnly.(default to undefined) | Column |
column_width | Number | By default,if a width is not specified the chart will attempt to distribution in horizontally.(default to undefined) | Column |
coordinate | iChart.Coordinate2D | the option for coordinate. | Column |
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 |
label | iChart.Text | Specifies option of label at bottom. | Column |
labels | Array | the array of labels close to the axis | ColumnStacked2D |
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 |
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 |
percent | Boolean | Specifies as true to display with percent.(default to false) | ColumnStacked2D |
render | String | id of dom you want rendered(defaults ''). | Chart |
scaleAlign | String | the align of scale(default to 'left') Available value are: @Option 'left' @Option 'right' | Column |
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.Rectangle | Specifies option of rectangle. | Column |
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 |
text_space | Number | the distance of column's bottom and text(default to 6) | Column |
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 |
z_index | Number | Specifies the chart's z_index.override the default as 999 to make it at top layer.(default to 999) | Chart |
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 |
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 |
resize | Fires when chart resize.
Parameter
| Chart |
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 |
eventOff | turn off the event listener
Parameter
Return
void
| Chart |
eventOn | turn on the event listener
Parameter
Return
void
| Chart |
getCoordinate | Returns the coordinate of this element.
Parameter
Return
iChart.Coordinate2D
| Column |
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 |
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 |
resize | resize the chart
Parameter
Return
void
| Chart |
setUp | set up the chart by latest configruation
Parameter
Return
void
| Chart |