chart
Type: Component
File: ui/chart.js
Based on:
Group
,
DataLoader
,
AtomDataLoader
,
MouseEvents
,
view
,
Settings
,
Destruction
,
Destruction
,
Canvas
,
EventSystem
,
Settings
Included in:
Methods
add
- adds item to the store
addSeries
- adds the new chart series
attachEvent
- attach custom handler to inner event
blockEvent
- purpose is unknown
callEvent
- calls inner event
clearAll
- remove all items from the component
clearCanvas
- clears canvas
dataCount
- gets count of items
define
- sets configuration property or a hash of properties
destructor
- destructs the object
detachEvent
- detach custom code from handler
exists
- checks if the item with such ID exists
filter
- filters data
first
- gets the ID of the first item
getCanvas
- gets canvas
getNode
- gets html object of a view
getParent
- gets a parent view
group
- groups data
hasEvent
- checks whether a component has an event
idByIndex
- gets the id of an item with taken index
indexById
- the index of the item in question
item
- gets the object of a data item
last
- gets the id of the last item
load
- loads values from external datasource
mapEvent
- route events from one object to another
max
- gets the maximum value of a property
min
- gets the minimum value of a property
next
- gets ID of the next element which is positioned in defined step
parse
- added data from a datasource
previous
- gets ID of the previous element which is positioned in defined step
refresh
- repaint the whole view or a certain a item
remove
- removes element from datastore
render
- renders a chart
renderText
- creates absolutely positioned container
renderTextAt
- creates absolutely positioned container and then align it according to the 1st and 2nd parameters
resize
- recalculates and adjusts view sizes
show
- shows a view
sort
- sorts datastore
sum
- gets the sum of property values
unblockEvent
- purpose is unknown
ungroup
- ungroups data
update
- sets properties of the data item
Events
onxls
- before xml loading start
onxle
- after xml loading end
onitemclick
- item was clicked
onbeforecontextmenu
- context menu call in the item area
onitemdblclick
- item was double-clicked
onmousemove
- mouse was pointed over item
onmouseout
- mouse was moved out from item
onmousemoving
- mouse was moved over component
Properties
alpha
- the transparency of a chart item (a number between 0 and 1)
barWidth
- the width of the bars
border
- enables/disables bar border
cant
- a value from 0 to 1 that defines the slope angle of 3D pie (default value - 0.5)
color
- a certain color or template that defines items colors
gradient
- specifies a chart gradient
label
- the template for items' labels
labelOffset
- property of pie charts that defines offset of sector labels from the pie edge (20 is default)
legend
- object that defines chart legend
line
- line and spline chart property (object) that defines line color and line width
lineColor
- pie chart property that sets color for pie borders (#ffffff)
origin
- bar chart property, sets scale origin
padding
- object that defines top, left, right and bottom paddings for chart area
pieInnerText
- pie chart property, the template for the inner labels
radius
- the radius for the bar's rounding
shadow
- enables/disables pie shadown
type
- chart type
value
- the template for item values
xAxis
- the object that defines the horizontal axis
yAxis
- the object that defines the vertical axis
item
- actual for line and spline charts, an object that defines radius, color, borderColor and borderWidth of an item
group
- an object with settings for initial grouping
sort
- an object with settings for initial sorting
datastore
- custom DataStore object
data
- loaded data
url
- data url
datatype
- type of loaded data
container
- html container or its id where view needs being initialized
id
- view id
css
- class name for view container
width
- view width
height
- view height
gravity
- view gravity (1 by default)