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

vue-apexcharts

Package Overview
Dependencies
Maintainers
1
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.2.0 to 1.2.1

17

dist/vue-apexcharts.js

@@ -14,5 +14,2 @@ (function (global, factory) {

},
yaxis: {
type: Array
},
type: {

@@ -53,13 +50,2 @@ type: String,

});
this.$watch('yaxis', function (yaxis) {
if (!_this.chart && yaxis) {
_this.init();
} else {
_this.chart.updateOptions({
yaxis: _this.yaxis
}, true);
}
}, {
deep: true
});
this.$watch('series', function (series) {

@@ -99,4 +85,3 @@ if (!_this.chart && series) {

},
series: this.series,
yaxis: this.yaxis
series: this.series
};

@@ -103,0 +88,0 @@ var config = ApexCharts.merge(this.options, newOptions);

2

package.json
{
"name": "vue-apexcharts",
"version": "1.2.0",
"version": "1.2.1",
"description": "Vue.js wrapper for ApexCharts",

@@ -5,0 +5,0 @@ "main": "dist/vue-apexcharts.js",

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

| **height** | Number/String | Possible values for width can be `100%` or `300px` or 300 |
| **yaxis** | Array | The yaxis should be an array even if it includes 1 object [Read why](#why-yaxis-as-an-additional-prop) |
| **options** | Object | The configuration object, see options on [API (Reference)](https://apexcharts.com/docs/options/chart/type/) |

@@ -184,7 +183,2 @@

## FAQ
### Why yaxis as an additional prop?
The `:options` property doesn't have the deep watcher set to true, and hence yaxis configuration go unnoticed on updates as yaxis is treated as an Array in ApexCharts (even in a single axis chart).
## Development

@@ -191,0 +185,0 @@

@@ -8,5 +8,2 @@ import ApexCharts from 'apexcharts'

},
yaxis: {
type: Array
},
type: {

@@ -45,10 +42,2 @@ type: String,

})
this.$watch('yaxis', yaxis => {
if (!this.chart && yaxis) {
this.init()
} else {
this.chart.updateOptions({ yaxis: this.yaxis }, true);
}
}, { deep: true })

@@ -87,4 +76,3 @@ this.$watch('series', series => {

},
series: this.series,
yaxis: this.yaxis
series: this.series
}

@@ -91,0 +79,0 @@

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