sn-word-cloud
October 14, 2024 ยท View on GitHub
Warning This repository is now archived and will not be updated
This repository was originally published to foster collaboration and engagement with developers as they customized or developed visualizations, but due to customer feedback and usage data, it is now moved back to closed source. Moving this and other projects back to closed source will support better integration with internal build and test tooling, and free up resources for investment in these and other visualizations.
sn-word-cloud
A word cloud chart aimed to be used in nebula.js built using d3 and d3-cloud.
This extension is part of the extension bundles for Qlik Sense. The repository is maintained and moderated by Qlik R&D.
Requirements
Requires @nebula.js/stardust version 2.0.0 or later.
Installing
If you use npm: npm install @nebula.js/sn-word-cloud.
You can also load through the script tag directly from https://unpkg.com.
Usage
import { embed } from '@nebula.js/stardust';
import word from '@nebula.js/sn-word-cloud';
// 'app' is an enigma app model
const nuked = embed(app, {
types: [
{
// register word cloud - qlik-word-cloud is the default name in sense
name: 'qlik-word-cloud',
load: () => Promise.resolve(wordcloud),
},
],
});
// Rendering a simple word cloud
nuked.render({
element: document.querySelector('.wordCloud'),
type: 'qlik-word-cloud',
fields: ['WordsField', '=Sum(SizeField)'],
properties: {
title: 'Word cloud',
},
});
License
@nebula.js/sn-word-cloud is MIT licensed.