BUG Report: Plotly plotlyJson selectedPoints not being set

  • Goal: When using a chart type plotlyJson in my case pie chart, the state property selectedPoints should be set when a click event is received, as the other out of the box charts correctly do.

  • Steps:

  1. Create a new plotlyJson Chart
  2. Populate the data for a pie chart, example
[{
  values: [10,20,30,40,50],
  labels: ["Excellent","Good","Ok","Poor","Bad","Unknown"],
  type: 'pie',
  textposition:"outside",
  marker: {
    colors: ["#1ca256","#14c01f","#fec016","#e77421","#e5403a","#8d9e9f"]
  }
}]
  1. Right click on the chart and view state
  2. Select a section of the chart and notice selectedPoints does not update. or it updates by dataset, x and y are undefined.
2 Likes

Hi @TrevKillick,

Apologies for the issues with the plotlyJson chart.

Let me look to reproduce this and confirm the bug so I can make a report for our engineering team.

Thank you for sharing the screen shot and the app JSON, that will help me a ton in reproducing this.

Will let you know if I have any further questions about the set up :+1:

Hi @TrevKillick,

Just reproduced that bug, apologies for the odd behvior on the component. It is fairly new so we appreciate the bug find so we can fix it to improve the component!

Thank you for the patients and will update you with any news I hear on the bug ticket.

2 Likes

Thanks again Jack, no worries at all looking forward to the update.

1 Like

Any updates on this?
Would really love a way to use the select event on custom plotlyJson charts, as they are far more customizable than the built-in options.

Hi @gasperblk, no updates yet but if more customers request it, that raises its visibility! I went ahead and added a +1 for you.

1 Like

Thanks @TrevKillick for highlighting this Plotly bug.

+1 from me as well.
It would be great to see this issue addressed, as it affects chart usability and can cause confusion for end users. Fixing it would definitely improve the overall reliability of Plotly components in Retool.

2 Likes