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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Mysql With chart

Thread ID:





120170 Sep 7,2015 05:16 PM UTC Sep 24,2015 02:10 PM UTC JavaScript 6
Tags: ejChart
Asked On September 7, 2015 05:16 PM UTC


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 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)

Replied On 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

Deepaa Pragaasam [Syncfusion]
Replied On 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


Chad Church [Syncfusion]
Replied On 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


Sanjith Kesavan [Syncfusion]
Replied On 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.

Sanjith Kesavan [Syncfusion]
Replied On September 24, 2015 02:10 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon