Skip to content

D3 chartjs migration#7520

Merged
akatsoulas merged 2 commits into
mozilla:mainfrom
akatsoulas:d3-chartjs-migration
Jun 12, 2026
Merged

D3 chartjs migration#7520
akatsoulas merged 2 commits into
mozilla:mainfrom
akatsoulas:d3-chartjs-migration

Conversation

@akatsoulas

Copy link
Copy Markdown
Collaborator

No description provided.

* Switch to chart.js
* Drop D3
@akatsoulas akatsoulas marked this pull request as draft May 22, 2026 14:06

@escattone escattone left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+wc

} from "chart.js";
// Side-effect import: registers the date-fns adapter with Chart.js
import "chartjs-adapter-date-fns";
import { MatrixController, MatrixElement } from "chartjs-chart-matrix";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are imported but never used. Maybe remove them and the chartjs-chart-matrix" dependency until a use case arises?

return new Chart(el, config);
}

export function renderMatrixChart(el, config) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is never used either. Maybe remove until a use case arises?

@escattone

escattone commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Oh, I forgot one thing. If they don't already comply, I think we should configure the chart colors to comply with the Tertiary palette of the Mozilla brand guidelines, which is intended for data visualizations.

@akatsoulas akatsoulas marked this pull request as ready for review June 11, 2026 16:14
* Drop unsed imports
@akatsoulas akatsoulas force-pushed the d3-chartjs-migration branch from 7f49de1 to a20c946 Compare June 11, 2026 16:35
@akatsoulas akatsoulas merged commit 9d7bcea into mozilla:main Jun 12, 2026
6 checks passed
@akatsoulas akatsoulas deleted the d3-chartjs-migration branch June 12, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants