Hello!
I would like to show a graph in a Power Chart when I click on a row from a table.
Something like:
what I got now is a onRowClick event like:
def runAction(self, event):
if self.props.data is None or self.props.data.getRowCount() == 0 or self.props.selection.selectedRow == -1:
self.getSibling("chartDistri").props.data = []
else:
selectedRow = self.props.selection.selectedRow
myDataset = self.props.data
# Use column indices
selectedRowData = {
'column5': myDataset.getValueAt(selectedRow, 5),
'column6': myDataset.getValueAt(selectedRow, 6),
'column7': myDataset.getValueAt(selectedRow, 7),
'column8': myDataset.getValueAt(selectedRow, 8),
'column9': myDataset.getValueAt(selectedRow, 9),
}
self.getSibling("chartDistri").props.data = [selectedRowData]
nothing shows on the PowerChart.
Am I using the right components? Am I using the right click event?