Appearance
View vs edit
Default: view mode
js
new Insight('#chart', { persist: false, chartData });- Chart draws immediately
- No formatting toolbar
- Hover the ChartBuddy ball for Download, Drag to slide, and Edit
Open the editor immediately
js
new Insight('#chart', {
editable: true,
toolbar: true, // optional; edit-mode only
persist: false,
chartData,
});Switch at runtime
js
await insight.enterEditMode();
insight.mode; // 'edit'
await insight.exitEditMode(); // or use Done on the chrome ball
insight.mode; // 'view'What edit mode is for
Interactive formatting: axes, colors, annotations, orientation, and the rest of the ChartBuddy editor. The embed package has no spreadsheet UI — you edit styling, not the underlying data grid.