0

I am trying to plot a graph in codeigniter framework. I have a javascript code for plotting graph. The graph is plotting with respect to database values.

I write the php code for fetching data from the database and create a controller for read the model value. but i don't know how to to sent that fetched value in the controller to the javascript in codeigniter framework. here i am attaching the controller code.

$this->load->model('piechart');
        $res['h'] = $this->piechart->piechart();

$res containing the value of graph.

0 Answers0