vue-c3 is a reusable Vue.js component designed to integrate C3.js charts into Vue 2 applications. It provides a declarative wrapper around the C3.js library, allowing developers to manage chart data and behaviors through Vue props and an event handler system. The current stable version is 1.2.11. Given its last commit in late 2018, the package is considered abandoned, with no active development, new features, or support for Vue 3 or recent C3/D3 versions. Its primary differentiator was simplifying C3 integration within the Vue 2 ecosystem, abstracting direct DOM manipulation typically required by C3.js. Release cadence was infrequent, with the last update over five years ago, indicating no ongoing maintenance.
npm install vue-c3Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to integrate vue-c3 into a Vue 2 component, initialize the chart with data, and manage its lifecycle events.
For Vue 3 projects, consider actively maintained charting libraries built for Vue 3, or use C3.js directly with a custom Vue 3 wrapper.
It is strongly recommended to use a currently maintained charting library or component. If absolutely necessary, audit the code for vulnerabilities and be prepared to fork and maintain it yourself.
Ensure exact peer dependency versions are installed, or proceed with caution if using newer versions, testing thoroughly for compatibility issues.
Ensure `handler: new Vue()` is correctly defined in the component's `data` function, or that the `handler` prop is correctly passed if using it from a parent component.
Make sure `import VueC3 from 'vue-c3'` is present in the script section and `VueC3` is listed in the `components` object of your Vue component (e.g., `components: { VueC3 }`).