vue-apexcharts
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -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); |
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39721
242
199