Required library edition:
Required library file: dhtmlxcontainer.js
attaches dhtmlxChart to a cell, returns chart object
Attaching to a layout's cell:
var chartConfig = { view:"bar", .... } var chart = dhxLayout.cells("a").attachChart(chartConfig); // returns chart object chart.load(...);
Attaching to an accordion's cell:
var chart = dhxAccord.cells(id).attachChart(chartConfig); // returns chart object
Attaching to a window:
var chart = dhxWins.window(id).attachChart(chartConfig);
Attaching to a tab:
var chart = dhxTabbar.cells(tabId).attachChart(chartConfig);