vue-chartless

0.1.23 • Public • Published

Install

npm i vue-chartless

Basic usage

<!-- Vue component -->
<template>
    <div>
        <Chart 
            :def="def"
            :data="data"
        ></Chart>
    </div>
</template>
 
<script>
import Chart from 'vue-chartless'
 
export default {
    components: {
      Chart
    },
    data: () => ({
        def : {
            type : 'pie'
        },
        data : [
            { label: 'London', value:'330' },
            { label: 'Barcelona', value:'430' },
            { label: 'Paris', value:'150' },
            { label: 'Belgrade', value:'220' }
        ]
    })
}
</script> 

Supported types

  • pie
  • bar

alt text

Package Sidebar

Install

npm i vue-chartless

Weekly Downloads

62

Version

0.1.23

License

MIT

Unpacked Size

19.1 kB

Total Files

3

Last publish

Collaborators

  • kumric