chartjs / chartjs/Chart.js

Title does not appear when configuration includes plugins

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

### Expected behavior

The title options should work when plugin object is used in configuration.

### Current behavior

When a configuration object contains "plugins", title plugin options no longer work. You can see in the pen, one chart contains plugins and the other does not. The one without plugins shows the title, when including a plugin the title no longer works.

### Reproducible sample

https://codepen.io/raysuelzer/pen/raVBBWZ

### Optional extra steps/info to reproduce

_No response_

### Possible solution

_No response_

### Context

We cannot use titles or subtitles on our charts when using the tooltip plugin

### chart.js version

v4.4.9

### Browser name and version

Edge Latest, Chrome Latest, Firefox Latest

### Link to your project

_No response_

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.