phpChart
C_PhpChartX.set_data_renderer Method
Example  Send Feedback

Sets dataRenderer property to pull data from external data source.

Parameters
Parameters 
Description 
renderer 
plugin or user function that returns plotting data 
Returns

None

Description

Sets dataRenderer property. Data renderers allow jqPlot to pull data from any external data source such as a function implementing an AJAX call. Simply assign the external source to the "dataRenderer" plot option. The only requirement on data renderers is that it must return a valid jqPlot data array. 

 

The Sine Data Renderer returns data from a sine function. 

 

 

 

The following example returns the data from the ci_parser plugin. 

 

 

Example
See Also
What do you think about this topic? Send feedback!
Copyright (c) 2011. All rights reserved.