New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Vue warn]: Error in nextTick: "TypeError: Cannot read property 'clear' of undefined" #6
Labels
Comments
Hello, |
Hello, <template>
<div>
<donut-chart
id="donut"
:data="donutData"
colors='[ "#1ab394", "#ff000a", "#867389"]'
resize="true">
</donut-chart>
</div>
</template>
<script>
import Raphael from 'raphael/raphael'
global.Raphael = Raphael
import {DonutChart} from 'vue-morris'
export default {
props: ["profileUserId"],
components: {
DonutChart,
},
data() {
return {
donutData: []
}
},
mounted () {
this.fetchAllUserStatistics()
},
methods: {
fetchAllUserStatistics() {
let vm = this
axios.get('/api/user-statistics/' + this.profileUserId).then(
function (response) {
vm.donutData = response.data.chartData
}
)
}
},
}
</script> chartData looks like this [
{
"label": "Test1",
"value": 73
},
{
"label": "Test2",
"value": 71
},
{
"label": "Test3",
"value": 28
}
] |
Thanks for reporting this bug. |
Fix v0.0.10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
As title say I get this error and donut chart is not show
The text was updated successfully, but these errors were encountered: