Skip to content

Single slice pie chart rendering issue in Safari #1085

@markov00

Description

@markov00

Describe the bug
In Safari, when a single slice pie chart has hovered, the highlighter renders an white cross artefact, probably caused by the SVG configuration of that specific Circle highlight.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://elastic.github.io/elastic-charts/?path=/story/sunburst--single-slice with Safari
  2. See the white cross on hover

Expected behaviour
A clear circle with the right fill color

Screenshots
Screenshot 2021-03-23 at 11 31 42

Version (please complete the following information):

  • Browser: Safari
  • Elastic Charts: master

Additional context
The highlighter is built as:

return <circle key={key} r={(y0px + y1px) / 2} {...props} fill="none" strokeWidth={y1px - y0px} />;

we can probably fix by using the fill color and fixing the radius to the correct one.

Errors in browser console
N/A

Kibana Cross Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    :LensKibana Lens related issue:partitionPartition/PieChart/Donut/Sunburst/Treemap chart relatedbugSomething isn't workingkibana cross issueHas a Kibana issue counterpartreleasedIssue released publicly

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions