Skip to content

Declarative charts and visualizations for Vue.js

License

bstaats/vue-vis

Repository files navigation

vue-vis

Declarative charts and visualizations for Vue.js.

Introduction

vue-vis is a reusable charting library for Vue.js utilizing the best parts of d3.js but simplifying the development of reusable charts and other visualizations with just a few lines. vue-vis is heavily inspired by great projects like Recharts and the earliest declarative charting libraries of days forgotten.

Work in Progress

This is not ready for prime time. Its currently experimental with only a simple BarChart example replicated from one of Bostock's examples.

Example

<SvgContainer :width="960" :height="500">
  <BarChart :width="960"
            :height="500"
            :margin="{top: 20, right: 20, bottom: 30, left: 40}"
            :data="data">

    <XAxis dataKey="name" type="band" :padding="0.1" :transform="`translate(0,`+450+`)`"></XAxis>
    <YAxis dataKey="value" tickFormat=".0%" ></YAxis>

  </BarChart>
</SvgContainer>

TODO

  • SvgContainer
  • BarChart
  • XAxis
  • YAxis
  • Build this as an actual NPM module
  • LineChart
  • AreaChart
  • PieChart
  • ScatterPlot
  • Many more...

Build Setup with Docker

# serve with hot reload at localhost:8080
docker-compose up

Build Setup without Docker

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

License

MIT

About

Declarative charts and visualizations for Vue.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published