Skip to content

Excessive padding after updating to v3 when using pointHoverRadius and borderWidth #10394

Description

@arggh

Expected behavior

I would expect layout.padding = 0 to actually make padding 0.

Current behavior

When dataset uses pointHoverRadius and borderWidth, the padding is dramatically increased regardless of any padding settings. It can easily be seen that there's no reason to include that extra padding, as everything would easily fit on the canvas without any extra padding. Especially on mobile, this creates a very silly user experience.

The same effect, but with less dramatic outcome, can be observer when using pointHoverRadius and pointRadius.

Screenshot 2022-06-03 at 8 32 50

Reproducible sample

https://codepen.io/arggh/pen/JjpZJYG

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

v3.8.0

Browser name and version

Chrome 101

Link to your project

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions