Skip to content

Visualization of the scatter plot is unreliable - the text labels are displayed or hidden randomly #7455

Open
@pawel-paciorek-at-metrohm

Description

Scatter chart exposes the text property to display a text label assigned to the plotted data. The feature works in an unreliable way when it comes to changing the displayed texts. Besides that it does not render all the requested texts, it is impossible to predict what piece of data will be hidden/shown after next refresh.

See the provided example of the scatter plot chart:

  • It shows a simply scatter chart. Initially, no text labels are presented, what is confirmed with the text of the button placed below the chart (resize the view port to see it if necessary).
  • Use the button to change this: press the button, then the labels assigned to the data are presented - the y-values of dataset are presented.
  • Moreover, ever click change the point where the labels are presented with the simple rule as follows: only points with y-value higher than randomly chosen value will be decorated. The "cutoff value" is presented as the button text.
  • Press the button a few times. You will quickly realize that some “peak” values, or values on the left/right side of the plot, unexpectedly disappear randomly, breaking the above simple rule.

You may suspect an implementation error in the attached test example.
Nothing could be more wrong.
Use plotly toolbar to download a plot as png file. On such a copy, all labels are rendered as expected.

https://codepen.io/zabka5/pen/emNoqjZ

Unfortunately, after the recently reported #7440, #7441 and #7449, this is another example of the scatter chart needing major revisions and ... tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions