dewfall

Vue g2 charts

vue2 g2 component

Version Version: 0.2.2 Version Updated: 09/21/2020 By: dewfall License: MIT

DownloadsLast30Days: 12

npm i vue-g2-charts
yarn add vue-g2-charts

vue-g2-plot

use gl-plot in vue2.

install

$ npm i vue-g2-charts @vue/composition-api @antv/g2plot
# OR
$ yarn add vue-g2-charts @vue/composition-api @antv/g2plot

# @vue/composition-api @antv/g2plot is needed

props

  • define chart type by config.type
  • data and config are passthrough to g2-plot
props 示例
data g2-plot.data
config g2-plot.config & { type: 'Line' | 'Bar' | ... }

usage

::: demo

:::

Categories: UI ComponentsCharts

Copyright © 2020 vuejscomponent.com