0.1.19 • Published 5 years ago
vue-bar-chart v0.1.19
vue-bar-chart
vue-bar-chart is a customized bar chart component to showcase statistical data in a clean way.
Install
cd vueproject
npm install --save vue-bar-chart
Usage
<template>
<div id="app">
<BarChart
:options="options"
:width="width" //default is 400px
:height="height" //default is 400px
xlabel="Prices($)"
ylabel="Year" />
</div>
</template>
<script>
import BarChart from "vue-bar-chart";
export default {
name: "app",
components: {
BarChart
},
data() {
return {
width: 600,
height: 600,
options: [
{
title: "2015",
value: 90,
color: "#a86f32"
},
{
title: "2016",
value: 70,
color: "#545D79"
},
{
title: "2017",
value: 95,
color: "#8AB721"
},
{
title: "2018",
value: 40,
color: "#32a852"
},
{
title: "2019",
value: 60,
color: "#4832a8"
}
]
};
}
};
</script>
0.1.19
5 years ago
0.1.18
5 years ago
0.1.17
5 years ago
0.1.16
5 years ago
0.1.15
5 years ago
0.1.14
5 years ago
0.1.13
5 years ago
0.1.12
5 years ago
0.1.11
5 years ago
0.1.10
5 years ago
0.1.9
5 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago