diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js
index b55b2cc0..cf0caf6e 100644
--- a/docs/.vuepress/config.js
+++ b/docs/.vuepress/config.js
@@ -91,6 +91,10 @@ module.exports = {
}
},
}
+ },
+ algolia: {
+ indexName: 'vue-chartjs',
+ apiKey: 'b3544f7387612693644777553675d56a'
}
},
locales: {
diff --git a/docs/README.md b/docs/README.md
index 8b915350..877e567f 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -8,7 +8,7 @@ features:
details: Easy for both beginners and pros 🙌
- title: Extendable
details: Simple to use, easy to extend 💪
-- title: Powerfull
+- title: Powerful
details: With the full power of chart.js 💯
footer: MIT Licensed | Copyright © 2018-present Jakub Juszczak
---
diff --git a/docs/fr-fr/README.md b/docs/fr-fr/README.md
index 8b915350..877e567f 100644
--- a/docs/fr-fr/README.md
+++ b/docs/fr-fr/README.md
@@ -8,7 +8,7 @@ features:
details: Easy for both beginners and pros 🙌
- title: Extendable
details: Simple to use, easy to extend 💪
-- title: Powerfull
+- title: Powerful
details: With the full power of chart.js 💯
footer: MIT Licensed | Copyright © 2018-present Jakub Juszczak
---
diff --git a/docs/guide/README.md b/docs/guide/README.md
index c43bc81e..bbf84bc5 100644
--- a/docs/guide/README.md
+++ b/docs/guide/README.md
@@ -288,8 +288,8 @@ export default {
After that you can add your chart component to a parent component
```js
-
- ```
+
+```
### Chart with local data
@@ -302,16 +302,14 @@ export default {
extends: Bar,
data: () => ({
chartdata: {
- datacollection: {
- labels: ['January', 'February'],
- datasets: [
- {
- label: 'Data One',
- backgroundColor: '#f87979',
- data: [40, 20]
- }
- ]
- }
+ labels: ['January', 'February'],
+ datasets: [
+ {
+ label: 'Data One',
+ backgroundColor: '#f87979',
+ data: [40, 20]
+ }
+ ]
},
options: {
responsive: true,
@@ -320,7 +318,7 @@ export default {
}),
mounted () {
- this.renderChart(this.datacollection, this.options)
+ this.renderChart(this.chartdata, this.options)
}
}
```
@@ -381,13 +379,13 @@ export default {
}),
async mounted () {
this.loaded = false
- try {
- const { userlist } = await fetch('/api/userlist')
- this.chartData = userlist
- this.loaded = true
- } catch (e) {
- console.error(e)
- }
+ try {
+ const { userlist } = await fetch('/api/userlist')
+ this.chartdata = userlist
+ this.loaded = true
+ } catch (e) {
+ console.error(e)
+ }
}
}
@@ -403,10 +401,10 @@ You can set `responsive: true` and pass in a styles object which get applied as
```html
-
-
-
-
+
+
+
+