Hello,

I need to create chart using Flot chart library, using PHP JSON functions (ie. json_encode).

Problem is that I don't understand structure of PHP array that have to be encoded to create proper JS array for generating Flot charts.

Chart needs to have several lines, with different colors.

Can somebody help me with some example of proper PHP array for this kind.


Thank you in advance!