I have plotted a ROC Curve using a scatter plot from Google developers. The code is
and the output is
I want to make it interactive by showing a confusion matrix when a user clicks on the points in the scatter plot (All the points have a corresponding confusion matrix).
I found this :https://developers.google.com/chart/interactive/docs/gallery/controls#overview
but here the pie chart changes as per whatever the variable is but I want the table contents to be updated as soon as a user clicks on the data point.
Sample of table can be:
I want to know how can we relate the data points of the scatter plot to the table data of table.
Thanks a lot.
I would use a custom tooltip and render your confusion matrices in a column of the DataTable.
https://developers.google.com/chart/interactive/docs/customizing_tooltip_content
Here's an interactive demo with something like what you might like. Note that after converting the array to a data table I add role and html properties to the tooltip column.