v-easy-chart

0.0.20 • Public • Published

v-easy-chart

v-easy-chart for visualize data for Vue projects

Installation

npm install --save v-easy-chart

Use

Easy visualize components using Apache echarts(v4.0)

main.js or any component just import package

import 'v-easy-chart'
 

components

<PieChart divid="divpie" :heightValue="height" :data="chartData" pieChartType="pie"></PieChart>
 
  data: function() {
    return {
      chartData: [
        { value: 335, name: "istanbul" },
        { value: 310, name: "ankara" },
        { value: 234, name: "izmir" },
        { value: 135, name: "adana" },
        { value: 1548, name: "mersin" }
      ],
      height : "500"
    };
  }
 

Props

divid = id of div which chart will generate

heightValue = height of chart

data = data which will be visualize.

pieChartType = "pie" or "donut"

PIE

DONUT

License

MIT

Package Sidebar

Install

npm i v-easy-chart

Weekly Downloads

1

Version

0.0.20

License

MIT

Unpacked Size

616 kB

Total Files

12

Last publish

Collaborators

  • asyaalya