Skip to content
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

Question: How to send parameters to drawMorrisCharts function? #24

Closed
myn01 opened this issue Jul 15, 2016 · 2 comments
Closed

Question: How to send parameters to drawMorrisCharts function? #24

myn01 opened this issue Jul 15, 2016 · 2 comments
Labels

Comments

@myn01
Copy link

myn01 commented Jul 15, 2016

How can I send the data array to drawMorrisCharts function from html or php page?
Then from app.js I would call drawMorrisCharts($data_array);
Thanks

@modularcoder
Copy link
Member

@myn01 I think you can serialize and print the array as a string and render it by PHP in some hidden input. After that parse the array by javascript, and pass to morris charts.

@modularcoder
Copy link
Member

modularcoder commented Jul 15, 2016

@myn01 Or you may make AJAX calls, to get the data for charts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants