Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

📊 Vue.js wrapper for Chart.js

License

NotificationsYou must be signed in to change notification settings

apertureless/vue-chartjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

vue-chartjs logo

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

Supports Chart.js v4.

npm versioncodecovBuild StatusPackage QualitynpmGitter chatlicenseCDNJS versionKnown VulnerabilitiesDonateko-fi


QuickStart  •  Docs  •  Stack Overflow

Quickstart

Install this library with peer dependencies:

pnpm add vue-chartjs chart.js# oryarn add vue-chartjs chart.js# ornpm i vue-chartjs chart.js

Then, import and use individual components:

<template>  <Bar:data="data":options="options" /></template><script lang="ts">import {ChartasChartJS,Title,Tooltip,Legend,BarElement,CategoryScale,LinearScale}from'chart.js'import {Bar }from'vue-chartjs'ChartJS.register(CategoryScale,LinearScale,BarElement,Title,Tooltip,Legend)exportdefault {  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? ConsiderCube, an open-source API for data apps.


supported by Cube

Docs

Build Setup

# install dependenciespnpm install# build for production with minificationpnpm build# run unit testspnpm test:unit# run all testspnpmtest

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 underMIT license.

Buy Me A Coffee

Packages

No packages published

Contributors100


[8]ページ先頭

©2009-2025 Movatter.jp