Hello,
If we want to let all the dataTable useable(table,pie,VerticalBar,clound tag,etc), we must to use “$dataTable->addRowsFromArrayWithIndexLabel($arr)”.
If we use “$dataTable->addRowsFromSimpleArray($arr)”, only the type “table” can be showed in dataTable.
But if we use $dataTable->renameColumn(‘index’,‘newName’), the index will be no available.
Eg:
1.only use “$dataTable->addRowsFromArrayWithIndexLabel($arr)”
[attachment=94:00.png][attachment=95:01.png]
2.use “$dataTable->addRowsFromArrayWithIndexLabel($arr)” and "rename index “label” "
[attachment=94:00.png][attachment=96:02.png]
3.only use “$dataTable->addRowsFromSimpleArray($arr)”
[attachment=94:00.png][attachment=97:03.png]
Is it possible to add a function $dataTable->setIndexColumn($name) or modify the function renameColumn()?
Or other better solutions?