Skip to content

Bar Chart on a monthly times scale #7991

@correaricardo

Description

@correaricardo

When I use the multiple bar chart with monthly time scale in x-axis, some datasets in first and last position are cropped

Expected Behavior

Draw the chart correctly and show the current month in labels section

Current Behavior

Some datasets in first and last position are cropped and the current month is not shown in labels section

image

Possible Solution

I don't know.

I tried setting the offset flag as true, but only works if I set the time scale unit as day

image

I tried setting the scale bounds as ticks, but the bars look too thin

image

Steps to Reproduce

https://codesandbox.io/s/compassionate-dijkstra-dje3k?file=/src/App.js

Context

Environment

  • Chart.js version: 2.9.4
  • Browser name and version: Chrome 86

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions