Gathering detailed insights and metrics for chartjs-chart-wordcloud
Gathering detailed insights and metrics for chartjs-chart-wordcloud
Gathering detailed insights and metrics for chartjs-chart-wordcloud
Gathering detailed insights and metrics for chartjs-chart-wordcloud
npm install chartjs-chart-wordcloud
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
115 Stars
238 Commits
19 Forks
6 Watching
2 Branches
1 Contributors
Updated on 19 Nov 2024
TypeScript (76.71%)
JavaScript (23.29%)
Cumulative downloads
Total Downloads
Last day
-8.9%
867
Compared to previous day
Last week
2.6%
4,573
Compared to previous week
Last month
25.3%
19,261
Compared to previous month
Last year
-18.4%
187,450
Compared to previous year
2
1
33
Chart.js module for charting word or tag clouds. Adding new chart type: wordCloud
.
Check out also my other chart.js plugins:
1npm install --save chart.js chartjs-chart-wordcloud
see Examples
1const config = { 2 type: 'wordCloud', 3 data: { 4 // text 5 labels: ['Hello', 'world', 'normally', 'you', 'want', 'more', 'words', 'than', 'this'], 6 datasets: [ 7 { 8 label: 'DS', 9 // size in pixel 10 data: [90, 80, 70, 60, 50, 40, 30, 20, 10], 11 }, 12 ], 13 }, 14 options: {}, 15};
A word has the basic FontSpec styling options (family, color, ...). In addition it has several options regarding rotating the text.
Controller options:
Word element options:
The ESM build of the library supports tree shaking thus having no side effects. As a consequence the chart.js library won't be automatically manipulated nor new controllers automatically registered. One has to manually import and register them.
Variant A:
1import { Chart } from 'chart.js'; 2import { WordCloudController, WordElement } from 'chartjs-chart-wordcloud'; 3 4Chart.register(WordCloudController, WordElement); 5... 6 7new Chart(ctx, { 8 type: WordCloudController.id, 9 data: [...], 10});
Variant B:
1import { WordCloudChart } from 'chartjs-chart-wordcloud'; 2 3new WordCloudChart(ctx, { 4 data: [...], 5});
1npm i -g yarn 2yarn install 3yarn sdks vscode
1yarn compile 2yarn test 3yarn lint 4yarn fix 5yarn build 6yarn docs
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
Found 0/2 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-18
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