vue-apexcharts
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -130,3 +130,4 @@ (function (global, factory) { | ||
//adding a global method or property | ||
Vue.ApexCharts = ApexCharts; // add the instance method | ||
Vue.ApexCharts = ApexCharts; | ||
window.ApexCharts = ApexCharts; | ||
@@ -133,0 +134,0 @@ Object.defineProperty(Vue.prototype, '$apexcharts', { |
{ | ||
"name": "vue-apexcharts", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"description": "Vue.js wrapper for ApexCharts", | ||
@@ -5,0 +5,0 @@ "main": "dist/vue-apexcharts.js", |
@@ -29,4 +29,5 @@ <p align="center"><img src="https://apexcharts.com/media/vue-apexcharts.png"></p> | ||
import VueApexCharts from 'vue-apexcharts' | ||
Vue.use(VueApexCharts) | ||
Vue.use(VueApexCharts) | ||
Vue.component('apexchart', VueApexCharts) | ||
``` | ||
@@ -38,3 +39,3 @@ | ||
<div> | ||
<apexcharts width="500" type="bar" :options="chartOptions" :series="series"></apexcharts> | ||
<apexchart width="500" type="bar" :options="chartOptions" :series="series"></apexchart> | ||
</div> | ||
@@ -45,8 +46,4 @@ </template> | ||
```js | ||
import VueApexCharts from 'vue-apexcharts' | ||
export default { | ||
components: { | ||
apexcharts: VueApexCharts, | ||
}, | ||
data: function() { | ||
@@ -82,3 +79,3 @@ return { | ||
<div class="app"> | ||
<apexcharts width="550" type="bar" :options="chartOptions" :series="series"></apexcharts> | ||
<apexchart width="550" type="bar" :options="chartOptions" :series="series"></apexchart> | ||
<div> | ||
@@ -165,3 +162,3 @@ <button @click="updateChart">Update!</button> | ||
<div class="example"> | ||
<apexcharts ref="demoChart" width="500" :options="chartOptions" :series="series"></apexcharts> | ||
<apexchart ref="demoChart" width="500" :options="chartOptions" :series="series"></apexchart> | ||
</div> | ||
@@ -168,0 +165,0 @@ </template> |
@@ -20,3 +20,6 @@ import babel from 'rollup-plugin-babel'; | ||
file: 'dist/vue-apexcharts.js', | ||
format: 'umd' | ||
format: 'umd', | ||
globals: { | ||
"apexcharts": "ApexCharts" | ||
} | ||
}, | ||
@@ -23,0 +26,0 @@ external: [ 'apexcharts' ], |
@@ -9,2 +9,3 @@ import ApexCharts from 'apexcharts' | ||
Vue.ApexCharts = ApexCharts; | ||
window.ApexCharts = ApexCharts; | ||
@@ -11,0 +12,0 @@ // add the instance method |
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
45377
322
233