Gathering detailed insights and metrics for vue-chartjs-typescript
Gathering detailed insights and metrics for vue-chartjs-typescript
Gathering detailed insights and metrics for vue-chartjs-typescript
Gathering detailed insights and metrics for vue-chartjs-typescript
npm install vue-chartjs-typescript
64.8
Supply Chain
95
Quality
74.6
Maintenance
50
Vulnerability
99.6
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
5,555 Stars
840 Commits
837 Forks
68 Watching
23 Branches
102 Contributors
Updated on 22 Nov 2024
TypeScript (73.26%)
Vue (12.52%)
JavaScript (8.72%)
HTML (5.5%)
Cumulative downloads
Total Downloads
Last day
66.7%
40
Compared to previous day
Last week
64.4%
240
Compared to previous week
Last month
-18.4%
845
Compared to previous month
Last year
-19.1%
11,915
Compared to previous year
1
64
vue-chartjs is a wrapper for Chart.js in Vue. You can easily create reuseable chart components.
Supports Chart.js v4.
Install this library with peer dependencies:
1pnpm add vue-chartjs chart.js 2# or 3yarn add vue-chartjs chart.js 4# or 5npm i vue-chartjs chart.js
Then, import and use individual components:
1<template> 2 <Bar :data="data" :options="options" /> 3</template> 4 5<script lang="ts"> 6import { 7 Chart as ChartJS, 8 Title, 9 Tooltip, 10 Legend, 11 BarElement, 12 CategoryScale, 13 LinearScale 14} from 'chart.js' 15import { Bar } from 'vue-chartjs' 16 17ChartJS.register(CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend) 18 19export default { 20 name: 'App', 21 components: { 22 Bar 23 }, 24 data() { 25 return { 26 data: { 27 labels: ['January', 'February', 'March'], 28 datasets: [{ data: [40, 20, 12] }] 29 }, 30 options: { 31 responsive: true 32 } 33 } 34 } 35} 36</script>
Need an API to fetch data? Consider Cube, an open-source API for data apps.
1# install dependencies 2pnpm install 3 4# build for production with minification 5pnpm build 6 7# run unit tests 8pnpm test:unit 9 10# run all tests 11pnpm test
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)This software is distributed under MIT license.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
4 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 8
Reason
Found 6/17 approved changesets -- score normalized to 3
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
27 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More