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_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 | Specifies the border for this element. Available property are: @Option enable {boolean} If enable the border @Option color {String} the border's color.(default to '#BCBCBC') @Option style {String} the border's style.(default to 'solid') @Option width {Number/Array} the border's width.(default to 1) @Option radius {Number} the border's radius.(default to 5) | Element |
border | Object | Here,specify as true by default | Painter |
brushsize | Number | Specifies the default linewidth of the canvas's context in this element.(defaults to 1) | 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 |
coordinate | Object | the option for coordinate | Line |
crosshair | Object | Specifies config crosshair.(default enable to false).For details see iChart.CrossHair Note:this has a extra property named 'enable',indicate whether crosshair available(default to false) | Line |
data | Array | Required,The datasource of Chart.must be not empty. | Chart |
data_labels | Array | the array of labels close to the axis | Line |
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.(defaults to true) | Chart |
direction | String | the direction of line run (default 'left') Available value are: @Option 'left' @Option 'right' | LineMonitor2D |
animation_duration | Number | Specifies the duration when animation complete in millisecond.(default to 1000) | Chart |
font | String | Specifies the font of this element.(default to 'Verdana') | Element |
fontsize | Number | Specifies the font size of this element in pixels.(default to 12) | Element |
fontweight | String | Specifies the font weight of this element.(default to 'normal') | Element |
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 |
footnote_align | String | Specifies how align footnote horizontally Available value are: @Option 'left' @Option 'center' @Option 'right' | Chart |
height | Number | Specifies the height of this canvas | Chart |
label_space | Number | the distance of column's bottom and text.(default to 6) | Line |
labelAlign | String | the align of label.(default to 'bottom') Available value are: @Option 'top,'bottom' | Line |
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 |
padding | Number | Specifies the padding for this element in pixel,the same rule as css padding.(defaults to 10) | Painter |
proportional_spacing | Boolean | if the point are proportional space.(default to true) | Line |
scaleAlign | String | the align of scale.(default to 'left') Available value are: @Option 'left' @Option 'right' | Line |
Object | the option for linesegment. For details see iChart.LineSegment | Line | |
segmentRect | Boolean | Indicate if the chart clear segment of canvas(defaults to true) | Chart |
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 |
style | String | ('2d','3d') | Painter |
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 |
title_align | String | Specifies how align title horizontally Available value are: @Option 'left' @Option 'center' @Option 'right' | Chart |
width | Number | Specifies the width of this canvas | 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 |
dblclick | Fires when this element is dblclick
Parameter
| Painter |
initialize | Fires after the element initializing is finished this is for test
Parameter
| Painter |
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 |
parseData | Fires when parse this element'data.Return value will override existing.
Parameter
| Chart |
parsePoint | Fires when parse this element'data.Return value will override existing.
Parameter
| Line |
parseTipText | Fires when parse this tip's data.Return value will override existing. Only valid when tip is available
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 |