Data Renderer function which converts a custom JSON data object into jqPlot data format.  Set this as a callable on the jqplot dataRenderer plot option:

plot = $.jqplot('mychart', [data], { dataRenderer: $.jqplot.ciParser, ... });

Where data is an object in JSON format or a JSON encoded string conforming to the City Index API spec.

Note that calling the renderer function is handled internally by jqPlot.  The user does not have to call the function.  The parameters described below will automatically be passed to the ciParser function.

Parameters

dataJSON encoded string or object.
plotreference to jqPlot Plot object.

Returns

data array in jqPlot format.

Close