-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PlotlyView on_selected event for scatter plots #4385
Conversation
Warning Rate Limit Exceeded@ritch has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 2 minutes and 26 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. WalkthroughThe recent updates focus on enhancing event handling across various components and modules, introducing new callback functionalities, and refining context management. This includes better event response in Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
const { x, y, z, ids, selectedpoints, ...metadata } = data; | ||
selected.push({ | ||
idx: point.pointIndex, | ||
id: Array.isArray(ids) ? ids[point.pointIndex] : null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes ids
a "known" parameter of view
. This needs to be added to the docs for types.PlotlyView()
.
}; | ||
|
||
function getValuesAtIndices(array, indices) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to remove this as its no longer used.
}); | ||
if (eventHandlerOperator) { | ||
let params = {}; | ||
if (event === "onClick") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to document this and the other event handler in types.PlotlyView()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary by CodeRabbit
New Features
Enhancements
Bug Fixes