Breaking changes (datalabels) upgrading from 5.1.0 to 5.1.x

Created on 1 April 2025, 5 days ago

Problem/Motivation

It seems as though the change in the 5.1.1 and above versions of charts_chartjs has a breaking change that adds the chartjs-plugin-datalabels plugin as an npm-asset, whereas with version 5.1.0 one had to manually add the chartjs-plugin-datalabels plugin as a separate library.

When using the standard `composer require 'drupal/charts:^5.1'` with a `composer update` it will break the charts if you are previously using charts 5.1.0 and a separate manual install of chartjs-plugin-datalabels.

Proposed resolution

Ideally there would be clear instructions on how to upgrade charts from 5.1.0 to a newer 5.1.x as there appears to be some breaking changes, especially if you were using the chartjs-plugin-datalabels plugin with version 5.1.0.

πŸ› Bug report
Status

Active

Version

5.1

Component

Chart.js integration

Created by

πŸ‡ΊπŸ‡ΈUnited States btully Dutchess County, NY

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024