1.1.2 • Published 6 years ago

vue-time-graph v1.1.2

Weekly downloads
7
License
BSD-3-Clause
Repository
github
Last release
6 years ago

vue-time-graph

A Vue component to have a time graph with filters

Installation

npm i vue-time-graph --save

Module

import VueTimeGraph from 'vue-time-graph';
...
export default  {
...
components:{
      VueTimeGraph
    }
...
}

Usage

In the html

<vue-time-graph v-on:filter="filter" :chardata="charData"> </vue-time-graph>

In the component

export default  {
...
methods:{
      filter (values) 
        {
            //filter your info and set it to the charData variable
        }
    }
...
}

Props

NameDefaultTypeDefinition
title'Grafica de tiempo'Stringtitle of the graph
showFilter'true'Boolif you want to show the filters
periodItems { text: 'Minuto', value: 'minute' } ... Arrayperiods of time options
chardata{}Objectdata of the graph, same structure of chatsjs
options{}Objectoptions of the graph, same structure of chatsjs
1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago