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.
Unfortunately, activation email could not send to your email. Please try again.

Mysql With chart

Thread ID:





120170 Sep 7,2015 01:16 PM Sep 24,2015 10:10 AM JavaScript 6
Tags: ejChart
Asked On September 7, 2015 01:16 PM


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

Deepaa Pragaasam [Syncfusion]
Replied On September 8, 2015 09:31 AM

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)

Replied On September 8, 2015 01:10 PM


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

Deepaa Pragaasam [Syncfusion]
Replied On September 9, 2015 06:34 AM

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


Chad Church [Syncfusion]
Replied On September 23, 2015 02:20 PM

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


Sanjith Kesavan [Syncfusion]
Replied On September 24, 2015 04:36 AM

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

Sanjith K.

Sanjith Kesavan [Syncfusion]
Replied On September 24, 2015 10:10 AM

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.