Scatterplot component not showing all of the returned points

Hi everyone, I am displaying the points on my scatterplot component, but all of the points are not showing up in the scatterplot.

For context, my data and layout plotly code is generated in a javascript query, and I am inserting the output in the "data" and "layout" field of the chart component. My javascript query is returning 23 points but the scatterplot is displaying 19. I also investigated the state of the scatterplot component and it also shows that there are 23 points.

Screenshot 2025-01-23 at 12.00.35 PM

Is this an error on the Retool end? Or is there anything else I could do to troubleshoot this behavior?

Thank you so much!

1 Like

Hi @alinabaron, thank you for posting your question here after attending Office Hours.

I imported the JSON you shared with me, and I fixed it by removing this aggregation from the generate_scatter_points JS query:
Screenshot 2025-01-23 at 4.04.01 PM

Thank you @Paulo for helping me troubleshoot this and @Jack_T for pointing me to the plotly code tester for further debugging.

1 Like

You are welcome! :slightly_smiling_face: