2.4.8 • Published 5 years ago

viser-vue v2.4.8

Weekly downloads
4,818
License
MIT
Repository
github
Last release
5 years ago

viser-vue npm Dependency Status

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

Install

$ npm install --save viser-vue

Usage

<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>
web-studiomhhs-editorvue-scamelmaterials-editorprocess-editorprocess-editor-proprocess-editor-singlevue-antd-pro-samplehuibur-antd-vue-procube-block@wf-core/corehs-ui-testquickreleasecomponentsnbtd-demos-admin-uiant-vue-extendant-design-vue-extenddc-online-form@dongercom/ui-v2@infinitebrahmanuniverse/nolb-vis@everything-registry/sub-chunk-3058fx-antv-apptaiya-wsbmwit-attitude-systemvue-lone-commentsvue-jm-comvue-label-demovue-antd-devvue-antd-jeecgvue-antd-loneweiying-menuwsbmwsbs-vuewgi-bimgisplatformvue-gy-antdvcolorpicker-test-3.3.3vcolorpicker-test-3.3.4vcolorpicker-test-3.3.5vcolorpicker-test-3.3.6vue-antd-tngvue-antdone-lonevue-antd-pingvue-antd-pro-vuevue-antd-proehr-npm-publishnewpwr-genoany-designerminke-uilf-vue-antd-adminlinewell-workflow-common-frontendhan-report-viewer-codeibc-om-adminmagicship-cmsmuchaofengyallaludoparchisbaloot-cligruguy-adminhifar-testhifar-test-nonehifar-test-twohx-vue-libraryibc-web-app-designergy-vue-commjupiter-testmy-adminmanager-systemmanong-adminmy-minappspiderplatwebspang-webtwmw-ui1twmw-ui10twmw-ui11twmw-ui4twmw-ui6twmw-ui7twmw-ui8twmw-ui9tw-vue-pro1you-wantzhangjunming-test-b1web-comp-ecifvue2-clientviserjs.github.io@dtux/scaffold-ko-vue-sample@mxiao/nuxt@neuqsoft/rbac-package@jeecg/antd-onineecmax-admine2-admine2-materilas-adminfenqin-composable@wf-core/components@xiange.li/formdesign@zzyfb/gp-web-portalaf-example-webadmin-frontend-starter-kit@yq-group/gp-web-portal@yq-group/skeleton-project-web-admin-content@yq-group/skeleton-project-web-portalao-feng-ant-design-proant-huaxuantd-onine
2.4.8

5 years ago

2.4.7

5 years ago

2.4.6

6 years ago

2.4.5

6 years ago

2.4.4

6 years ago

2.4.3

6 years ago

2.4.2

6 years ago

2.4.1

6 years ago

2.4.0

6 years ago

2.3.3

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.5

7 years ago

2.2.3

7 years ago

2.2.2

7 years ago

2.2.1

7 years ago

2.2.0

7 years ago

2.1.4

7 years ago

2.1.3

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.3.7

7 years ago

1.3.6

7 years ago

1.3.5

7 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago