SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2007
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Example of PHP array that will generate Flot chart

    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!

  2. #2
    SitePoint Zealot
    Join Date
    Jul 2012
    Location
    Scarborough, North Yorkshire, United Kingdom
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What information do you need to be stored in the array?

    Is this of any help?

    http://stackoverflow.com/questions/1...ate-flot-graph
    Last edited by RichardAskew; Oct 29, 2012 at 09:45. Reason: Added link
    Richard
    Resell SSL Certificates - API / WHMCS / HostBill / ClientExec
    ServerTastic - RapidSSL, Geotrust, Thawte, Symantec, SmarterTools and more


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •