Hi, I’m using ChartFactor toolkit to generate a Heat Map , but I need to transpose the data, meaning I want to swap the rows with the columns in the visualization in real time with a button i have in my UI.
Is there a built-in option in the library to do this, or do I need to manually transform the data before passing it to the chart?
I see, well yes you can do it, using the transpose feature, let me show how you can do it in real time:
// obtain the visualization
const myViz = cf.getVisualization("your_viz_id");
// set the transpose property to true or false as you need
myViz.set('transpose', true) // transposed values
myViz.set('transpose', false) // normal values