5.3.1 • Published 18 days ago

vue-chartjs v5.3.1

Weekly downloads
185,675
License
MIT
Repository
github
Last release
18 days ago

vue-chartjs

vue-chartjs is a wrapper for Chart.js in Vue. You can easily create reuseable chart components.

Supports Chart.js v4.

npm version codecov Build Status Package Quality npm Gitter chat license CDNJS version Known Vulnerabilities Donate ko-fi

Quickstart

Install this library with peer dependencies:

pnpm add vue-chartjs chart.js
# or
yarn add vue-chartjs chart.js
# or
npm i vue-chartjs chart.js

Then, import and use individual components:

<template>
  <Bar :data="data" :options="options" />
</template>

<script lang="ts">
import {
  Chart as ChartJS,
  Title,
  Tooltip,
  Legend,
  BarElement,
  CategoryScale,
  LinearScale
} from 'chart.js'
import { Bar } from 'vue-chartjs'

ChartJS.register(CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend)

export default {
  name: 'App',
  components: {
    Bar
  },
  data() {
    return {
      data: {
        labels: ['January', 'February', 'March'],
        datasets: [{ data: [40, 20, 12] }]
      },
      options: {
        responsive: true
      }
    }
  }
}
</script>

Need an API to fetch data? Consider Cube, an open-source API for data apps.

supported by Cube

Docs

Build Setup

# install dependencies
pnpm install

# build for production with minification
pnpm build

# run unit tests
pnpm test:unit

# run all tests
pnpm test

Contributing

  1. Fork it ( https://github.com/apertureless/vue-chartjs/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

This software is distributed under MIT license.

@leanvitale/cfi@thombruce/vue-playfairfirstbet-admin-frontendbillingman-web-customer-component@luchmewep/mdbvuevue-object-trafic@aitheon/apps-ui-components-hostspaceone-consolespaceone-dsdefipro-bscdefi-pro-makermybankmobile-testpppmariadb-maxscale-query-editorvitex-pagenboard-uikmh-vue-chartalignxcelwindzovoid-vue-chartwidget-components-test@infinitebrahmanuniverse/nolb-vue-chwbu-design-system@everything-registry/sub-chunk-3074@chooseo/template4xdvyellowcard-chart-componentvue-flexjsvue-jaspervue-bar-menu-axiosvue-colliervue-argon-dashboardvue-analytics-chart-widgetsvue-chart-widgetvue-elicat-libraryvue-laravel-componentsvue-time-graphvue-white-dashboardvue-quick-templatewidget-fevuetify-strapi-dashboardtest-template-pkgzyosadminunti-chart-statuwbui-crmtruefuture-tooltip@ipn-eu/vue-chart-radar@itflex/components@internethic/oparedo-uislidev-addon-chartjsspn-utilitysparc-dashboard-betaspinzarstat_widgetstac-componentstocknowsupervjs-nucleosupervjs-ui@opendialogai/opendialog-design-system-pkg@opendialogai/opendialog-design-system-testbed-pkg@mixd-id/web-scaffold@juntei/ui@kedikon/adashboard@kvass/widgets@laboon/template@lunaplex/dashui@laramab/x-chart@mozaic-ds/chart@mv-template/cameravision@mv-template/dev@mv-template/telkom@mv-template/toyota@mxntech/mintchoco@mtrack_lib/vue-componentswmsman-web-component@juicyllama/vue-devvuestic-02@pivoto/ui-base@portais-previsul/portal-componentes@sandstreamdev/chatwoot@quentin.marechal/vue-davra-ui@radiantearth/stac-browser@myetherwallet/mew-components@pzh-temporary/pzh-vue-component-library@nycopportunity/patterns@platforma/explore@vue-responsive-dash/chartjs@urbanhire.com/vuesable@stickearn/stickfrontelectron-twitter-toolselirancaba@ubuilder/charts@jojocoders/jojonomic-ui@jojonomic/jojo-lib@magnetarjs/uidynamik-librarydynamik-library-teste-experts-ui@solfacil/components-ui@rgo47/rgo-vue
5.3.1

18 days ago

5.3.0

5 months ago

5.1.0

1 year ago

5.2.0

1 year ago

5.0.1

1 year ago

5.0.0

1 year ago

4.1.2

2 years ago

4.1.1

2 years ago

4.0.7

2 years ago

4.1.0

2 years ago

4.0.5

2 years ago

4.0.4

2 years ago

4.0.6

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

4.0.3

2 years ago

4.0.2

2 years ago

3.5.1

4 years ago

3.5.0

4 years ago

3.4.2

5 years ago

3.4.1

5 years ago

3.4.0

6 years ago

3.3.2

6 years ago

3.3.1

6 years ago

3.3.0

6 years ago

3.2.1

6 years ago

3.2.0

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.1-rc2

6 years ago

3.0.1-rc1

6 years ago

3.0.1-rc0

6 years ago

3.0.0-rc1

6 years ago

3.0.0

7 years ago

3.0.0-rc0

7 years ago

2.8.7

7 years ago

2.8.6

7 years ago

2.8.5

7 years ago

2.8.4

7 years ago

2.8.3

7 years ago

2.8.3-rc-01

7 years ago

2.8.2

7 years ago

2.8.1

7 years ago

2.8.0

7 years ago

1.2.0

7 years ago

2.7.2

7 years ago

2.7.1

7 years ago

2.7.0

7 years ago

2.6.5

7 years ago

2.6.4

7 years ago

2.6.3

7 years ago

2.6.2

7 years ago

2.6.1

7 years ago

2.6.0

7 years ago

2.6.0-rc1

7 years ago

2.5.7-rc3

7 years ago

2.5.7-rc2

7 years ago

2.5.7-rc1

7 years ago

2.5.6

7 years ago

2.5.5

7 years ago

2.5.4

7 years ago

2.5.3

7 years ago

2.5.2

7 years ago

2.5.1

7 years ago

2.5.0

7 years ago

2.4.1

7 years ago

2.4.0

7 years ago

2.3.9

7 years ago

2.3.9-rc1

7 years ago

2.3.8

7 years ago

1.1.5

7 years ago

2.3.7

7 years ago

2.3.6

7 years ago

1.1.4

7 years ago

2.3.5

7 years ago

2.3.4

7 years ago

2.3.3

7 years ago

2.3.2

7 years ago

2.3.1

7 years ago

2.3.0

7 years ago

2.2.1

7 years ago

2.2.0

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

2.0.0-alpha

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago