chartjs / chartjs/Chart.js

[BUG] ExtraEasy chart with Bar + Custom plugin extends Bar - Bars overlap & render displayed incorrect

Open
#12,001 0 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

### [BUG]
As you can read there's an ExtraEasy chart, just for example.

I really like chart.js and I want to make graphs for everything now.
But there is a problem.


Creating a very simple custom plugin that extends the `bar` makes the graph appear on the display in a very strange way.
The bars overlap each other if some series are `hidden` (I'm talking about the default bars, not the custom type).

Look at the example to understand, because it is much easier to see than to explain.

If you select all series instead the graph is displayed correctly.

**Is there a fix for this?**

[The `bars` and the `custom` bars must be positioned at the same point on the x-axis (not side by side)]


### Reproducible sample to watch

https://jsfiddle.net/yvkdwg9e/

Chart.js Version:

The sample it's with the right now lastest v4.4.7 from cdn (jsdelivr.net)

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.