Check documentation for the latest version of dhtmlxSuite dhtmlXChart API DHTMLX Docs

dhtmlXChart API

Methods
add adds the new data object and redraws a chart
addSeries adds the new data property representation and redraws the chart
attachEvent adds any user-defined handler to available events
clearAll removes all data from component and repaints component.
clearSeries removes all Chart series
dataCount returns the total count of items in a chart. In case of dynamic loading the method returns the expected count of items
define configures a property of chart
destructor destructs the chart object
detachEvent detaches a handler from an event
exists returns true if the item with defined ID already exists
filter filters dataview by provided parameters
first returns ID of first item ( item with index == 0 )
get returns hash of data, related to specific ID
group groups data by a certain property. The method get an object with the following properties as a parameter:
hideSeries hides a series with the specified index
idByIndex returns the ID of item with the specified index
indexById returns the index of the item with the specified ID
last returns the ID of the last item ( item with index == dataCount-1 )
load loads data to the component via XML or JSON, usually data-values pairs
next returns the ID of the next item ( item with index == current + 1 )
parse parses an object or a string and fill the chart with the parsed items
previous returns the ID of the previous item ( item with index == current - 1 )
refresh redraws the whole chart
remove removes an item by its ID and redraws a chart.
render draws a chart according to the specified configuration and data
serialize serialize component back to json
set associates hash of data with some ID
showSeries shows a series with the specified index
sort adds any user-defined handler to available events
ungroup ungroups chart
update updates some item in the chart
Events
onAfterAdd occurs after an item is added to datastore
onAfterDelete called after an item is deleted
onAfterRender called after view was repainted
onAfterSort occurs after a dataset is sorted
onBeforeAdd occurs before an item is adding to datastore
onBeforeContextMenu called on right mouse click
onBeforeDelete fired before an item is deleted
onBeforeRender called before a chart is re-painted
onBeforeSort invokes before a dataset is sorted
onItemClick occurs when an item is clicked
onItemDblClick called when an item is double-clicked
onLegendClick fires on clicking a legend item
onMouseMove occurs when mouse pointer is pointed over an item
onMouseMoving fires when mouse pointer is moved over a chart
onMouseOut called when the mouse pointer is moved out of item area
onXLE fires when the data loading is finished and a component or data is rendered
onXLS fires when XML loading started
Other
$view top html node of component
Back to top