@@ -244,17 +244,17 @@ const graphPropTypes = {
244
244
*/
245
245
id : PropTypes . string ,
246
246
/**
247
- * Data from latest click event
247
+ * Data from latest click event. Read-only.
248
248
*/
249
249
clickData : PropTypes . object ,
250
250
251
251
/**
252
- * Data from latest click annotation event
252
+ * Data from latest click annotation event. Read-only.
253
253
*/
254
254
clickAnnotationData : PropTypes . object ,
255
255
256
256
/**
257
- * Data from latest hover event
257
+ * Data from latest hover event. Read-only.
258
258
*/
259
259
hoverData : PropTypes . object ,
260
260
@@ -267,21 +267,28 @@ const graphPropTypes = {
267
267
clear_on_unhover : PropTypes . bool ,
268
268
269
269
/**
270
- * Data from latest select event
270
+ * Data from latest select event. Read-only.
271
271
*/
272
272
selectedData : PropTypes . object ,
273
273
274
274
/**
275
275
* Data from latest relayout event which occurs
276
- * when the user zooms or pans on the plot
276
+ * when the user zooms or pans on the plot or other
277
+ * layout-level edits. Has the form `{<attr string>: <value>}`
278
+ * describing the changes made. Read-only.
277
279
*/
278
280
relayoutData : PropTypes . object ,
279
281
280
282
/**
281
283
* Data from latest restyle event which occurs
282
- * when the user toggles a legend item
284
+ * when the user toggles a legend item, changes
285
+ * parcoords selections, or other trace-level edits.
286
+ * Has the form `[edits, indices]`, where `edits` is an object
287
+ * `{<attr string>: <value>}` describing the changes made,
288
+ * and `indices` is an array of trace indices that were edited.
289
+ * Read-only.
283
290
*/
284
- restyleData : PropTypes . object ,
291
+ restyleData : PropTypes . array ,
285
292
286
293
/**
287
294
* Plotly `figure` object. See schema:
0 commit comments