vue-d3-cloud

a word cloud component using d3-cloud
4,875
Install
npm install vue-d3-cloud
Latest Version:0.2.0
Vue:2
License:MIT
Last Updated:May 13, 2019
Links: npm
Maintainer: makeupsomethinglater

vue-d3-cloud

A Vue implementation of react-d3-cloud

Installation

npm install vue-d3-cloud --save

Usage

//App.vue
<template>
  <div id="app">
    <cloud :data="words" :fontSizeMapper="fontSizeMapper" />
  </div>
</template>

<script>
import Cloud from 'vue-d3-cloud'

export default {
    name: 'app',
    data() {
        return {
            words: [
                { text: 'Vue', value: 1000 },
                { text: 'js', value: 200 },
                { text: 'is', value: 800 },
                { text: 'very cool', value: 1000000 },
                { text: 'lunch', value: 100 },
            ],
            fontSizeMapper: word => Math.log2(word.value) * 5,
        }
    },
    components: {
        Cloud,
    },
}
</script>

Related Packages

@blueking/bkflow.js

a visual edit flowchart plugin

922
@prefecthq/vue-charts

This library is the Vue and Typescript charts component library. Install

73,477
d3-vs

d3 visualisation with vuejs

8,932 162
vue3-mindmap

Mindmap component for Vue3

7,028 450
@hellowuxin/mindmap

Mindmap Vue Component

3,128 462

Version History

Version Released Vue License
0.2.0 ^2.5.17 MIT
0.1.6 ^2.5.17 MIT
0.1.5 ^2.5.17 MIT
0.1.4 ^2.5.17 MIT
0.1.3 ^2.5.17 MIT