-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Get datas from a database #205
Comments
Hi @bee-interactive |
Hi @junedchhipa ! Sure! Here's the code: My VueJS Component:
My controller:
Hope this will help! |
I think, it's more of a Vue issue. computed: {
series: function() {
return [{
name: 'sales',
data: [this.count]
}]
}
} If you can create a working demo with fake data on codesandbox vue-template, it would be helpful. I suspect, that the series prop isn't getting the new data, so the re-render isn't happening. Try updating the this.series = [{
name: 'sales',
data: response.data.dates.count
}] and see if re-rendering happens |
@junedchhipa It worked like a charm with the computed data! Thank you so much! |
can anyone help me with apexchat? thanks |
Hi!
I'm struggling to get datas injected dynamically into my basic bar chart.. I'm always facing this error: Uncaught (in promise) TypeError: Cannot read property 'x' of undefined the trying to fill the series.
Is there any example on how format the incoming datas from an ajax request? I'm trying to fetch some json response but nothing comes into my graph.
Here are my datas from the json response:
And here is my code that export the data to my json response:
I'm using Laravel and VueJS.
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: