Page MenuHomePhabricator

Upgrade chart.js to 3.x
Open, Stalled, LowPublic

Description

https://www.chartjs.org/docs/latest/getting-started/v3-migration

Chart.js 3.0 introduces a number of breaking changes. Chart.js 2.0 was released in April 2016. In the years since then, as Chart.js has grown in popularity and feature set, we've learned some lessons about how to better create a charting library. In order to improve performance, offer new features, and improve maintainability, it was necessary to break backwards compatibility, but we aimed to do so only when worth the benefit.

Toolhub is currently using 2.9.4

Event Timeline

bd808 triaged this task as Low priority.Apr 8 2021, 8:06 PM

We probably need to wait for https://vue-chartjs.org/ to catch up to chart.js 3.x before we do anything here. Otherwise we are likely to need to contribute the upgrade upstream and wait for a release which would be a nice thing to do for the other users of the vue-chartjs, but not directly contributing to our current project goals. If we were blocked on needing a chart.js 3.x feature this would become a higher priority.

bd808 changed the task status from Open to Stalled.Apr 8 2021, 11:46 PM
bd808 added a project: Upstream.

We could evaluate moving to https://github.com/victorgarciaesgi/vue-chart-3 instead.

Adding for further info:

Vue 2 requires @vue/composition-api package to also be installed and registered, to provide Vue 3's Composition API features like ref, defineComponent, computed, reactive.