laue

Modern charts for Vue.js
19,914 263
Install
npm install laue
Latest Version:0.2.1
License:MIT
Last Updated:Jan 6, 2023
Links: GitHub  ·  npm
Maintainer: qingwei.li

Laue

Build Status Coverage Status npm

🖖📈 Modern charts for Vue.js

Documentation: https://laue.js.org

Features

  • It depends on several small submodules in D3, so it's very reliable and lightweight.
  • The implementation for Vue.js, so it is composable and supports SSR.

Installation

npm i laue

Usage

import Vue from 'vue';
import { Laue } from 'laue';

Vue.use(Laue);

// On demand
import { Cartesian, Line } from 'laue';

Vue.component(Cartesian.name, Cartesian);
Vue.component(Line.name, Line);

Demo

A dead simple example

<div id="app">
    <la-cartesian :width="300" :height="150" :data="values">
        <la-line prop="pv"></la-line>
        <la-y-axis></la-y-axis>
        <la-x-axis prop="name"></la-x-axis>
        <la-tooltip></la-tooltip>
  </la-cartesian>
</div>

<script src="//unpkg.com/vue"></script>
<script src="//unpkg.com/laue"></script>
<script>
    new Vue({
        el: '#app',
        data: () => ({
            values: [
                { name: 'Page A', pv: 2000 },
                { name: 'Page B', pv: 3000 },
                { name: 'Page C', pv: 1200 }
            ]
        })
    })
</script>

Inspired

License

MIT

Related Packages

lauecharts

Modern charts for Vue.js

574 0
@hotdogee/vue3-trend

Simple, elegant spark lines for Vue 3

14,619 0
vuetrend

Simple, elegant spark lines for Vue.js

94,583 1,183
ag-charts-vue

AG Charts Vue Component

50,857 485
v-easy-chart

vuejs charts library demo

829 1

Version History

Version Released License
0.2.1 MIT
0.2.0 MIT
0.1.1 MIT
0.1.0 MIT
0.0.0 MIT