DHTMLX Docs & Samples Explorer

attachChart()

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxlayout.js / dhtmlxaccordion.js

attaches dhtmlxChart to a cell, returns a chart object

Attaching to a layout's cell:

var chartConfig = {
   view:"bar",
   ....
}
var chart = dhxLayout.cells("a").attachChart(chartConfig); // returns a chart object
chart.load(...);

Attaching to an accordion's cell:

var chart = dhxAcc.cells(id).attachChart(chartConfig); // returns a chart object