Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-apexcharts

Package Overview
Dependencies
Maintainers
0
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-apexcharts - npm Package Compare versions

Comparing version 1.6.2 to 1.7.0

.github/workflows/stale.yml

22

dist/vue-apexcharts.d.ts

@@ -5,12 +5,20 @@ import Vue, { Component, ComponentOptions } from 'vue';

interface VueApexChartsComponent extends Vue {
// data
readonly chart?: ApexCharts;
// props
options?: ApexOptions;
// this interface matches the exposed properties to enable straightforward
// and strongly typed binding to the <apexchart> component properties
// (see: https://apexcharts.com/docs/vue-charts/#props)
export interface VueApexChartConfig {
type?: 'line' | 'area' | 'bar' | 'histogram' | 'pie' | 'donut' | 'radialBar' | 'rangeBar' | 'scatter' | 'bubble' | 'heatmap' | 'candlestick' | 'radar' | 'polarArea' | 'treemap' | 'boxPlot';
series: any;
height?: string | number;
width?: string | number;
height?: string | number;
// method
options?: ApexOptions;
}
export interface VueApexChartsComponent extends VueApexChartConfig, Vue {
// data
readonly chart?: ApexCharts;
// props (see: VueApexChartConfig)
// methods
init(): Promise<void>;

@@ -17,0 +25,0 @@ refresh(): Promise<void>;

@@ -222,4 +222,4 @@ (function (global, factory) {

},
dataURI: function dataURI() {
return this.chart.dataURI();
dataURI: function dataURI(options) {
return this.chart.dataURI(options);
},

@@ -226,0 +226,0 @@ setLocale: function setLocale(localeName) {

@@ -17,5 +17,5 @@ {

"devDependencies": {
"@vue/cli-plugin-babel": "^3.0.0-rc.12",
"@vue/cli-plugin-eslint": "^3.0.5",
"@vue/cli-service": "^3.0.0-rc.12",
"@vue/cli-plugin-babel": "^5.0.8",
"@vue/cli-plugin-eslint": "^5.0.8",
"@vue/cli-service": "^5.0.8",
"vue-template-compiler": "^2.5.17"

@@ -22,0 +22,0 @@ },

{
"name": "vue-apexcharts",
"version": "1.6.2",
"version": "1.7.0",
"description": "Vue.js wrapper for ApexCharts",

@@ -10,2 +10,6 @@ "main": "dist/vue-apexcharts.js",

},
"repository": {
"type": "git",
"url": "https://github.com/apexcharts/vue-apexcharts.git"
},
"keywords": [

@@ -27,3 +31,4 @@ "Vue.js",

"peerDependencies": {
"apexcharts": "^3.26.0"
"apexcharts": ">=4.0.0",
"vue": "^2.5.17"
},

@@ -36,3 +41,3 @@ "devDependencies": {

"@babel/preset-env": "^7.4.2",
"rollup": "^0.64.1",
"rollup": "^2.79.2",
"rollup-plugin-babel": "^4.3.2",

@@ -39,0 +44,0 @@ "rollup-plugin-commonjs": "^9.1.8",

@@ -26,2 +26,3 @@ <p align="center"><img src="https://apexcharts.com/media/vue-apexcharts.png"></p>

```
If you're looking for Vue 3.x.x compatibile component, check-out <a href="https://github.com/apexcharts/vue3-apexcharts">vue3-apexcharts</a>

@@ -28,0 +29,0 @@ ## Usage

@@ -35,2 +35,9 @@ import ApexCharts from "apexcharts/dist/apexcharts.min";

created() {
let watched = ["type", "width", "height"];
watched.forEach(prop => {
this.$watch(prop, () => {
this.refresh();
});
});
this.$watch("options", options => {

@@ -51,10 +58,4 @@ if (!this.chart && options) {

});
let watched = ["type", "width", "height"];
watched.forEach(prop => {
this.$watch(prop, () => {
this.refresh();
});
});
},
beforeDestroy() {
beforeUnmount() {
if (!this.chart) {

@@ -189,4 +190,4 @@ return;

},
dataURI() {
return this.chart.dataURI();
dataURI(options) {
return this.chart.dataURI(options);
},

@@ -193,0 +194,0 @@ setLocale(localeName) {

@@ -5,12 +5,20 @@ import Vue, { Component, ComponentOptions } from 'vue';

interface VueApexChartsComponent extends Vue {
// data
readonly chart?: ApexCharts;
// props
options?: ApexOptions;
// this interface matches the exposed properties to enable straightforward
// and strongly typed binding to the <apexchart> component properties
// (see: https://apexcharts.com/docs/vue-charts/#props)
export interface VueApexChartConfig {
type?: 'line' | 'area' | 'bar' | 'histogram' | 'pie' | 'donut' | 'radialBar' | 'rangeBar' | 'scatter' | 'bubble' | 'heatmap' | 'candlestick' | 'radar' | 'polarArea' | 'treemap' | 'boxPlot';
series: any;
height?: string | number;
width?: string | number;
height?: string | number;
// method
options?: ApexOptions;
}
export interface VueApexChartsComponent extends VueApexChartConfig, Vue {
// data
readonly chart?: ApexCharts;
// props (see: VueApexChartConfig)
// methods
init(): Promise<void>;

@@ -17,0 +25,0 @@ refresh(): Promise<void>;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc