0.0.8 • Published 1 year ago

@damilaredev/apexcharts-vue v0.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

ApexCharts Vue

Setup

Compatible with Vue >=3 Apexcharts is required to be installed in your project.

# yarn
yarn install apexcharts @damilaredev/apexcharts-vue

# npm
npm i apexcharts @damilaredev/apexcharts-vue

# pnpm
pnpm i apexcharts @damilaredev/apexcharts-vue

Usage

import { createApp } from 'vue'
import ApexChartsVue from '@damilaredev/apexcharts-vue'
import App from './App.vue'

createApp(App).use(ApexChartsVue).mount('#app')

Props

type Props = {
  /**
   * Graph type prop
   *
   * @default 'line'
   *
   * @property
   * @name type
   * @type {string | undefined}
   */
  type?:
    | 'line'
    | 'area'
    | 'bar'
    | 'pie'
    | 'donut'
    | 'radialBar'
    | 'scatter'
    | 'bubble'
    | 'heatmap'
    | 'candlestick'
    | 'boxPlot'
    | 'radar'
    | 'polarArea'
    | 'rangeBar'
    | 'rangeArea'
    | 'treemap'

  /**
   * Graph config options
   *
   * @default '100%'
   *
   * @property
   * @name options
   * @type {ApexOptions | undefined}
   */
  options?: ApexOptions

  /**
   * Graph data prop
   *
   * @default '[]'
   *
   * @property
   * @name series
   * @type {ApexAxisChartSeries | ApexNonAxisChartSeries | undefined}
   */
  series?: ApexAxisChartSeries | ApexNonAxisChartSeries

  /**
   * Graph width
   *
   * @default '100%'
   *
   * @property
   * @name width
   * @type {string | number | undefined}
   */
  width?: string | number

  /**
   * Graph height
   *
   * @default '100%'
   *
   * @property
   * @name height
   * @type {string | number | undefined}
   */
  height?: string | number
}

Example

Check out the GitHub example repo for sample usage.

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago