Home > @i2analyze/notebook-sdk > chart > IChart > isReadOnly
chart.IChart.isReadOnly property
Indicates whether the chart is read-only for the current user.
Signature:
readonly isReadOnly: boolean;
Returns: boolean
Introduced: version 1.10
Remarks
A chart is read-only when the current user opened it as a read-only snapshot, for example because they have view-only access to it, or because another user is editing it. The value is fixed for as long as the chart remains open; the user must reopen the chart to change it.
On a read-only chart, the application rolls back any mutation that would change the chart. The mutation does not report an error; its promise resolves with a result that contains no changes. Changes to the selection and to the view of the chart still apply for the current user.