0.2.0 • Published 7 years ago

3d-stack v0.2.0

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

3d-stack

Install

// npm
npm install 3d-stack

// yarn
yarn add 3d-stack

Options

Props

NameTypeDescription
initDataParams: objArrayinit data

Events

NameTypeDescription
changeParams: valueObjectvalues change when the callback function

How to Use

<template>
  <div>
    <h1>3D Stack Chart</h1>
    <stack :init-data="browsers" v-if="browsers && browsers.length" @change="change"></stack>
  </div>
</template>

<script>
const initData = [
  { name: 'chrome', count: 300, color: '#3866d1' },
  { name: 'ie', count: 180, color: '#299529' },
  { name: 'edge', count: 120, color: '#257e25' },
  { name: 'firefox', count: 80, color: '#9d2424' },
  { name: 'safari', count: 50, color: '#252525' },
  { name: 'opera', count: 30, color: '#995924' },
  { name: 'others', count: 40, color: '#484848' }
]

export default {
  data() {
    return {
      browsers: initData
    };
  },
  methods: {
    change(e) {
      console.log('value:', e);
    }
  }
}
</script>
0.2.0

7 years ago

0.1.8

7 years ago

0.1.6

7 years ago

0.1.4

7 years ago

0.1.2

7 years ago

0.1.0

7 years ago

0.0.8

7 years ago

0.0.6

7 years ago

0.0.1

7 years ago