We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Mysql With chart


I just download the javascript library, and I have a question regarding the connection of all components with Mysql, is there a simple way to json transport  for example in php.
Can we just use Ajax from jquery, if have you any example.
I tried the grid component that's run with jquery GetJson, but not graph

Thanks a lot for your help

6 Replies

DP Deepaa Pragaasam Syncfusion Team September 8, 2015 01:31 PM UTC

Hi Christophe,
It is possible to get data using  ajax from php. We have preparing a sample based on your requirement.
Will update the sample within one business day (10th September 2015)

WE weibel September 8, 2015 05:10 PM UTC


Thanks for your answer, and find attached a zip file with the data.php and the text file is just the output in json format of the data.php

best regards

Attachment: Archive_ab48341b.zip

DP Deepaa Pragaasam Syncfusion Team September 9, 2015 10:34 AM UTC

Hi Cristophe,
We have analyzed the sample and found that you have missed to use query in the chart.To retrieve data from the datamanager query is important for rendering the chart .
 Code Snippet:
var data = new ej.DataManager({ url: "http://localhost/data.php/", crossDomain: true });
var query = new ej.Query();
We have modified the data.php to obtain the Json data in array format as below.

I have attached the sample for your reference
Chart rendered from data MySQL transported using PHP 

Please let us know if you have any concern


CC Chad Church Syncfusion Team September 23, 2015 06:20 PM UTC

Hello Joshua,


Find bellow the link from the forum :



I tried the example they send me, I just change the mysql configuration, and the grid i working not the chart.


Thanks for your help


SK Sanjith Kesavan Syncfusion Team September 24, 2015 08:36 AM UTC

Hi Christophe,
Thanks for your reply. Please let us know if you need further assistance on this.

Sanjith K.

SK Sanjith Kesavan Syncfusion Team September 24, 2015 02:10 PM UTC

Hi Christophe,
Please ignore the previous response.
Sanjith K.

Live Chat Icon For mobile
Up arrow icon