GithubHelp home page GithubHelp logo

vue-nvd3's Introduction

vue-nvd3

The NVD3 chart library for Vue.

This library is just in beta version. It's only using in my project i will add the tests and examples in the future versions.

Install

$ npm install vue-nvd3

Live Demo

Components in this library

Tag Component
<vn-bar> BarChart
<vn-bubble> BubbleChart
<vn-hgrouped-bar> HBarChart
<vn-line-bar> LineBarChart
<vn-line> LineChart
<vn-pie> PieChart
<vn-stacked-area> StackedAreaChart

Dependencies

  • vue: "^2.1.0"
  • nvd3: "^1.8.5",
  • d3: "^3.5.17"

How to use

import Vue from 'Vue'
import VueNVD3 from 'vue-nvd3'
Vue.use(VueNVD3)

References

<vn-bar> - BarChart

attribute type default description
model Array [] The data to show on the chart
height String '300px' The chart height
textField String 'label' Specify which field should be show as axis label text of the data model
valueField String 'value' Specify which field should be use as axis values of the data model
staggerLabels Boolean true -
tooltips Boolean false Whether show the tooltips when mouse on the bars
showValues Boolean true Identity whether show the values on the chart
colors Array ['#82DFD6', '#ddd'] The bar colors

<vn-bubble> - BubbleChart

attribute type default description
model Array [] The data to show on the chart
height String 300px The chart height
xFormat Function, String undefined
yFormat Function String undefined
showDistX Boolean true
showDistY Boolean true
colors Array ['#82DFD6', '#ddd']

<vn-hgrouped-bar> - HBarChart

attribute type default description
model Array [] The data to show on the chart
height String 300px The chart height
textField String 'label' Specify which field should be show as axis label text of the data model
valueField String 'value' Specify which field should be use as axis values of the data model
height Number null
yFormat Function,String undefined
showControls Boolean true
colors Array ['#82DFD6', '#ddd']

<vn-line-bar> - LineBarChart

attribute type default description
model Array [] The data to show on the chart
height String 300px The chart height
xFormat Function, String undefined
y1Format Function, String undefined
y2Format Function, String undefined
colors Array ['#82DFD6', '#ddd']

<vn-line> - LineChart

attribute type default description
model Array [] The data to show on the chart
height String 300px The chart height
xFormat Function, String undefined
yFormat Function, String undefined
colors Array ['#82DFD6', '#ddd']

<vn-pie> - PieChart

attribute type default description
model Array [] The data to show on the chart
height String 300px The chart height
showLabels Boolean true
margin Object {top: 30, right: 20, bottom: 20, left: 20},
width Number null
height Number null
showTooltipPercent Boolean false
showLegend Boolean true
legendPosition String 'top'
labelThreshold Number 0.05
labelType String 'percent'
donut Boolean false
donutRatio Number 0.35
textField String 'label' Specify which field should be show as axis label text of the data model
valueField String 'value' Specify which field should be use as axis values of the data model
colors Array ['#82DFD6', '#ddd']

<vn-stacked-area> - StackedAreaChart

attribute type default description
model Array [] The data to show on the chart
height String 300px The chart height
xFormat Function, String undefined
yFormat Function, String undefined
rightAlignYAxis Boolean true
showControls Boolean true
clipEdge Boolean true
colors Array ['#82DFD6', '#ddd']

vue-nvd3's People

Contributors

dotnetage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vue-nvd3's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.