# viser-vue

> viser-vue is vue of viser.

Latest version **2.4.8** (published 2019-12-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install viser-vue
pnpm add viser-vue
yarn add viser-vue
bun add viser-vue
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.4.8 |
| Published | 2019-12-24 |
| First published | 2017-11-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 742.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | arcthur, ascoders |
| Keywords | g2, chart, vue, datavis |

## Links

- npm: https://www.npmjs.com/package/viser-vue
- Repository: https://github.com/viserjs/viser-vue
- Homepage: https://github.com/viserjs/viser-vue#readme
- Issues: https://github.com/viserjs/viser-vue/issues
- npm.io page: https://npm.io/package/viser-vue

## Dependencies (3)

- [vue](https://npm.io/package/vue.md) ^2.5.3
- [viser](https://npm.io/package/viser.md) ^2.0.0
- [@types/node](https://npm.io/package/@types/node.md) *

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 2.4.8 (latest) — 2019-12-24
- 2.4.7 — 2019-11-08
- 2.4.6 — 2019-04-30
- 2.4.5 — 2019-02-13
- 2.4.4 — 2019-01-03
- 2.4.3 — 2018-12-28
- 2.4.2 — 2018-11-19
- 2.4.1 — 2018-10-23
- 2.4.0 — 2018-10-23
- 2.3.3 — 2018-09-29
- 2.3.2 — 2018-09-06
- 2.3.1 — 2018-09-04
- 2.3.0 — 2018-08-09
- 2.2.5 — 2018-05-09
- 2.2.3 — 2018-04-13
- … 38 more at https://npm.io/package/viser-vue/versions

## README

# viser-vue [![npm](https://img.shields.io/npm/v/viser-vue.svg)](https://www.npmjs.com/package/viser-vue) [![Dependency Status](https://david-dm.org/viserjs/viser-vue.svg?path=packages/viser-vue)](https://david-dm.org/viserjs/viser-vue.svg?path=packages/viser-vue)

> A toolkit fit for data vis engineer (vue version).

## Install

```sh
$ npm install --save viser-vue
```

## Usage

```vue
<template>
  <div>
    <v-chart :force-fit="true" :height="height" :data="data" :scale="scale">
      <v-tooltip />
      <v-axis />
      <v-smooth-line position="month*temperature" color="city" :size="2" />
    </v-chart>
  </div>
</template>

<script>
const DataSet = require('@antv/data-set');

const sourceData = [
  { month: 'Jan', Tokyo: 7.0, London: 3.9 },
  { month: 'Feb', Tokyo: 6.9, London: 4.2 },
  { month: 'Mar', Tokyo: 9.5, London: 5.7 },
  { month: 'Apr', Tokyo: 14.5, London: 8.5 },
  { month: 'May', Tokyo: 18.4, London: 11.9 },
  { month: 'Jun', Tokyo: 21.5, London: 15.2 },
  { month: 'Jul', Tokyo: 25.2, London: 17.0 },
  { month: 'Aug', Tokyo: 26.5, London: 16.6 },
  { month: 'Sep', Tokyo: 23.3, London: 14.2 },
  { month: 'Oct', Tokyo: 18.3, London: 10.3 },
  { month: 'Nov', Tokyo: 13.9, London: 6.6 },
  { month: 'Dec', Tokyo: 9.6, London: 4.8 },
];

const dv = new DataSet.View().source(sourceData);
dv.transform({
  type: 'fold',
  fields: ['Tokyo', 'London'],
  key: 'city',
  value: 'temperature',
});
const data = dv.rows;

const scale = [{
  dataKey: 'percent',
  min: 0,
  formatter: '.2%',
}];

export default {
  data() {
    return {
      data,
      scale,
      height: 400,
    };
  }
};
</script>

<style scoped>

</style>
```

---
_Source: https://npm.io/package/viser-vue · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
