chartjs / chartjs/Chart.js

Chart.js v4 x-axis time series labels are not displaying properly

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

Description

### Expected behavior

In Chart.js v2 when we have multiple data points for the same month we were able to display only one label month and skip remaining labels .but in v4 it is not supporting for each data point it is displaying label. Is there any capability or method to display only one label per month in v4.

### Current behavior

v4 it is not supporting for each data point it is displaying label. Is there any capability or method to display only one label per month in v4.
V2:
![image](https://user-images.githubusercontent.com/17424454/208795244-38132113-e3c5-4313-a778-1fd33485c730.png)

V4/V3:
![image](https://user-images.githubusercontent.com/17424454/208795299-5ce77df7-4726-4148-847a-77f9f61ee12d.png)

### Reproducible sample

https://angular-chart-js-57fvvw.stackblitz.io

### Optional extra steps/info to reproduce

_No response_

### Possible solution

_No response_

### Context

_No response_

### chart.js version

v4

### Browser name and version

All

### Link to your project

https://angular-chart-js-57fvvw.stackblitz.io

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.