Comments (3)
Hello fxcosta and thank you so much for the amazing work.
actually this library is working perfectly when i return the $chartjs object from controller to view directly and render it there, but i am now doing it through ajax call, i have the chartjs object ready there in controller and return the object from the controller function to the ajax call success function, but how do i render in the success function of ajax call? your help would be really appreciated.
thank you
hi.do you find a solution for your problem?i have same problem
from laravel-chartjs.
Hi, any solution?
from laravel-chartjs.
I found a solution.
I try to implement some functions like this. After calling the ajax, we will add the data from ajax to update our Chart with this function
function addData(chart, data, datasetIndex) {
chart.data.datasets[datasetIndex].data = data;
chart.update();
}
function addLabel(chart, label) {
chart.data.labels = label;
chart.update();
}
This is an example addData(chart, newData, 0);
or addLabel(chart, newLabel);
.
from laravel-chartjs.
Related Issues (20)
- Update to ChartJS v3 library HOT 1
- Redirection when I click on the bar HOT 1
- Drill down
- yAxisID not working
- Templates should only be responsible for mapping the state to the UI HOT 4
- bar background color not showing for all rows
- Option OnClick event HOT 1
- Contributor HOT 2
- [ask] add label on pie chart HOT 20
- IE 11 issue
- Generate the same chart in one blade HOT 1
- Mixed Chart
- Duration en X or X axis
- incompatible with laravel 7 HOT 1
- Get Chart js Instances already created HOT 2
- How to add option for animate in controller
- Render markup separately from scripts
- Documentation on how to use this library
- Gradient Fill on Line Chart Background Color
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-chartjs.