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". |
Answered by
danmarshall
Aug 28, 2023
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'
}
}); |
0 replies
Answer selected by
Posvar
|
this worked - and had to change "Grid" to "grid" - case mattered! Thanks. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The 2nd parameter to the load function can return the initial insight: