1.0.2 • Published 4 years ago

ipxpiechart v1.0.2

Weekly downloads
15
License
-
Repository
-
Last release
4 years ago

IPX Pie Chart

A very simple component for Vue, built to generate pie chart.

Install

npm i ipxpiechart --save

Usage

<template>
<IpxPieChart 
  title="Visitors"
  :viz_data= "pie_data"
  tag_id="ipx_piechart_viz"
  :height= 0.9
  :width= 2
  :inner_radius= 60
  font_color="#4F4F4F"
  font_size="16px"
  :colors="pie_colors"
/>
</template>
<script>
  import IpxPieChart from "ipxpiechart";

  export default {
    components: {
      IpxPieChart 
    },
   data() {
    return {
      pie_data: [
            {
                LABEL: "1-2 ZONES/VISIT",
                VALUE: 77.0
            },
            {
                LABEL: "3-4 ZONES/VISIT",
                VALUE: 22.18
            },
            {
                LABEL: "5+ ZONES/VISIT",
                VALUE: 0.75
            }
         ],
    pie_colors: ["#2F96EF", "#B5B5B5", "#71BCF8", "#4F4F4F"]
   }
  }
  }
</script>

Visuals

ipx-pie-chart

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago