Skip to content

Overlapping labels on x axis #6109

Description

@listefano

Expected Behavior

Labels should be skipped or rotate so they are not overlapping.

Current Behavior

If the browser gets resized the labels on the x axis could get overlapped.
chart

Steps to Reproduce (for bugs)

  1. Create a line chart with a x axis of type "time" and no data.
  2. Resize the browser so the chart gets smaller/bigger.

Here is a sample of the problem:
https://codesandbox.io/s/1vm83xknoj?fontsize=14

Context

I get the data from an custom private API and want to visualize the data with chart.js.

Environment

  • Chart.js version: 2.7.3
  • Browser name and version: Google Chrome v72.0.3626.119 | CefSharp V69

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions