• Stars
    star
    5,542
  • Rank 7,393 (Top 0.2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ“Š Vue.js wrapper for Chart.js

vue-chartjs

vue-chartjs logo

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 ย ย โ€ขย ย  Docs ย ย โ€ขย ย  Slack ย ย โ€ขย ย  Stack Overflow

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.

Buy Me A Coffee

More Repositories

1

vue-parallax

๐ŸŒŒ Vue.js component for parallax image scroll effects
JavaScript
637
star
2

vue-password-strength-meter

๐Ÿ” Password strength meter based on zxcvbn in vue.js
JavaScript
560
star
3

vue-cookie-law

๐Ÿช ๐Ÿ‘ฎ Hackable EU Cookie Law Plugin for Vue.js
JavaScript
376
star
4

vue-breakpoints

๐Ÿฌ ๐Ÿ™ˆ Vue.js utility component to show and hide components based on breakpoints
JavaScript
194
star
5

npm-stats

๐Ÿ“ˆ npm package statistics dashboard build with vue
Vue
113
star
6

shopware-api-client

๐Ÿ› Javascript API Client for Shopware
JavaScript
32
star
7

vue-observable

IntersectionObserver, MutationObserver and PerformanceObserver in Vue.js
JavaScript
24
star
8

wipfred

๐ŸšงManage your wip.chat todos with alfred
JavaScript
21
star
9

sketch-flip-size

๐Ÿ” FlipSize is a small Sketch plugin to flip the size of a shape, layer or artboard
JavaScript
17
star
10

vscode-icon

๐ŸŒ€ Round OSX icon for VSCode ๐Ÿš€
16
star
11

vue-chartjs-demo

๐Ÿ“Š ๐Ÿ“ˆ Github Pages with demo charts for vue-chartjs
JavaScript
16
star
12

alfred-git-snippets

Alfred Powerpack snippets for git commit messages that are awesome
11
star
13

colourhunt

๐ŸŽจCommunity driven colour palettes
Vue
10
star
14

wiviz

Wifi client probe analyzer & visualizer
JavaScript
10
star
15

vue-chartjs-vuex

Sample project for vue-chartjs with vuex
JavaScript
9
star
16

bs3stat

๐Ÿ“Š Small dashboard service for backup ๐Ÿ’พ
Vue
7
star
17

alibaba-discount-alert

๐Ÿšจ Alert service for aliexpress discounts
JavaScript
5
star
18

mina-hipchat

HipChat room notifications for mina deploy
Ruby
3
star
19

presentation-vuex-testing

๐Ÿ’ ๐Ÿ’ฌ Slides of my vuex testing talk
3
star
20

flipper-de

FlipperZero Database for german signals
3
star
21

hacker-zines

Zines, Newsletters and Stuff that may be older than you!
2
star
22

deepbook

A social network prototype build with laravel
PHP
1
star
23

vuex-notes-app

๐Ÿ““ Vue.js note app with vuex for testing purposes
JavaScript
1
star
24

vue-chartjs-quasar

JavaScript
1
star