# vue-roughviz
**Repository Path**: lujiaming521/vue-roughviz
## Basic Information
- **Project Name**: vue-roughviz
- **Description**: Vue-Wrapper of roughViz.js
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2019-12-12
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# vue-roughviz
It's a Vue-wrapper for [roughViz.js](https://github.com/jwilber/roughViz). See examples in the `App.vue`.
## Installation
```
npm install vue-roughviz
```
## Usage
```
Donut
```
## Development
```
npm i
npm run serve
```
In case it is not working,
this repo uses the [Vue-Cli](https://cli.vuejs.org).
### Lints and fixes files
```
npm run lint
```
## Declaration and Style
The components are following the [Vue Style Guide](https://vuejs.org/v2/style-guide/).
That means components are called in [Kebab-Style](https://vuejs.org/v2/style-guide/#Self-closing-components-strongly-recommended):
```
```
For each attribute, a line in a component and also in Kebab-Style is [recommended](https://vuejs.org/v2/style-guide/#Multi-attribute-elements-strongly-recommended). However,
both is possible.
```
fill-weight="0.35" // better than fillWeight
stroke-width="0.5" // better than strokeWidth
fill-style="cross-hatch" // better than fillStyle
```
By passing an object, Vue needs to [bind](https://vuejs.org/v2/guide/class-and-style.html) it.
```
:data="[
{ month: 'Jan', A: 20, B: 5, C: 10 },
{ month: 'Feb', A: 25, B: 10, C: 20 },
{ month: 'March', A: 30, B: 50, C: 10 }
]"
```