You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eventData itself has an id field but it's undefined (am I missing some relevant use?) and, currently, the data property of the calcdata leaf can carry anything via the customdata attribute when calling Plotly.plotNew.
As customdata is an attribute intended for library users, I think we should have a separate attribute, e.g. key, for the unique identification of a data point, to let crossfiltering have sufficient selection input. The identification must be unique enough to identify a record of a 'dataframe' that the plot feeds from. It can't trivially be an index number of the data.x/data.y because a specific plot may not have all the rows to render (consider a set of trellised panels, each plotting just a subset of the data). From the viewpoint of plotly.js the key field is populated by the API caller and the doc clearly states its intended use.
Any alternative ideas or already available mechanism?
When using the box selector, the situation is easier because of receiving a simple x/y data domain. The points are also available so the use of the x/y domain is more of a special-case optimization opportunity so this item considers the more general case of the lasso.
The text was updated successfully, but these errors were encountered:
... I saw the id in the event data but attr is plural which I missed, would it be useful to rename at some point? Usually even array attribs are singular.
When lassoing, the current way to get the selected points is to do something like
id
field but it'sundefined
(am I missing some relevant use?) and, currently, thedata
property of thecalcdata
leaf can carry anything via thecustomdata
attribute when callingPlotly.plotNew
.As
customdata
is an attribute intended for library users, I think we should have a separate attribute, e.g.key
, for the unique identification of a data point, to let crossfiltering have sufficient selection input. The identification must be unique enough to identify a record of a 'dataframe' that the plot feeds from. It can't trivially be an index number of thedata.x
/data.y
because a specific plot may not have all the rows to render (consider a set of trellised panels, each plotting just a subset of the data). From the viewpoint ofplotly.js
thekey
field is populated by the API caller and the doc clearly states its intended use.Any alternative ideas or already available mechanism?
When using the box selector, the situation is easier because of receiving a simple
x
/y
data domain. The points are also available so the use of thex
/y
domain is more of a special-case optimization opportunity so this item considers the more general case of the lasso.The text was updated successfully, but these errors were encountered: