0.1.8 • Published 3 years ago

vue-analytics-charts v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vue-analytics-charts

Charts field component to display a analytics data based on Vue.

Works with Vue 2.*

Installation

Install via NPM

$ npm install vue-analytics-charts --save
$ yarn add vue-analytics-charts

Register as Component

import Vue from 'vue'
import VueAnalyticsCharts from 'vue-analytics-charts'

export default {
  name: 'App',

  components: {
    VueAnalyticsCharts
  }
}

Register as Plugin

import Vue from 'vue'
import VueAnalyticsCharts from 'vue-analytics-charts'

Vue.use(VueAnalyticsCharts)

Usage

example

Use controller from koa-analytics-service to an easy use

Quick example

<template>
    <vue-analytics-charts
        title="Page views"
        api-url="http://127.0.0.1:3009/api/analytics"
    ></vue-analytics-charts>
</template>

<script>
import VueAnalyticsCharts from 'vue-analytics-charts'

export default {
  name: 'App',

  components: {
    VueAnalyticsCharts
  },
}
</script>

Props

PropsDescriptionRequiredTypeDefault
optionsapexcharts optionsfalseobject{ chart: { type: 'area' } }
analyticsOptionsanalytics options to build analytics report v4 (see Analytics options)falseobject{}

Analytics options (See batchGet reference)

ValueDescriptionDefault
filtersFilters value[]
dimensionsDimensions value[{ name: "ga:date"}]
metricsmetrics value[{ expression: 'ga:pageviews' }]

Changelog

Detailed changes for each release are documented in the release notes.

License

vue-analytics-charts is open-sourced software licensed under the MIT license

Support

Hello, I'm Thomas the maintainer of this project in my free time , if this project does help you in any way please consider to support me. Thanks :smiley:

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago