Example of PHP array that will generate Flot chart


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!

What information do you need to be stored in the array?

Is this of any help?