How to Set Initial Chart Type/Color By/Sort in Explorer React component #670
-
After loading data into the explorer, I want to set it to a specific chart type, color by, and sort order. I'm trying to load "grid" chart by default, with color by "toneCSS" and sort by "UniqueID".
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The 2nd parameter to the load function can return the initial insight: explorerInstance.load(data, (columns)=>{
chart: 'Grid',
columns: {
color: 'ToneCSS',
sort: 'UniqueID'
}
}); |
Beta Was this translation helpful? Give feedback.
-
this worked - and had to change "Grid" to "grid" - case mattered! Thanks. |
Beta Was this translation helpful? Give feedback.
The 2nd parameter to the load function can return the initial insight: