[Solved] How to convert a php array of objects to javascrript objects?
<?php $myVar = json_encode($myArray) ; ?> Then pass the variable to you javascript: <script type=”text/javascript”> var myJsVar = <?php echo $myvar; ?> </script> I do not know Morris charts.. but maybe you can add a service where you can grab dynamically the data from a distant server providing a data source in the config. In … Read more