Skip to content

Unremovable white border around line chart #9663

Description

@danielcolinjames

Expected Behavior

Chart has no border around it when the correct option flags for hiding it are enabled.

Current Behavior

When resizing the window, a thin white border line appears.

Steps to Reproduce

  1. Visit: https://codepen.io/dcj/pen/oNwqmVo?editors=0110
  2. Resize browser window width
  3. See thin white border appear between the chart and the div underneath it

Context

I'm using Chart.js with a React wrapper (react-chartjs-2) and trying to make the chart disappear seamlessly into the div underneath it. There is more context documented here, and here. I also tried using Chart.js directly (without the React wrapper) and that makes the line go away on the first load, but then it appears again when resizing the browser window.

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    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