chartjs / chartjs/Chart.js

Wrong position ticks in time scale with offsetGridLines

Open
#5,490 6 comments 0 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

Hi,

I'm using chartjs latest version (2.7.2).

I'm using `offsetGridLines: true` to center my xAxes label (2016, 2017,...), but since i use this options, my points are not in the right position.

For example, this point need to be between the red lines (because it belongs to 2016)

![Image of Yaktocat](https://i.imgur.com/IOfB83t.png])

jsfidle: https://jsfiddle.net/mrbmvd19/1/ (look at the 2016-12-01)

Do you know how to do that?

Thanks a lot.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.