Menu

MySQL---how to create multiple plots

2009-09-30
2012-09-07
  • Pancho Java

    Pancho Java - 2009-09-30

    hi,

    am wondering the best way to create multiple plots in one graph. data source
    is from mysql and am able to pull data for one plot, need to create several
    plots in one graph.

    thanks!

     
  • lbayuk

    lbayuk - 2009-09-30

    If you can get the data for all the plots with a single PHP script (using
    multiple queries), then you can make a single graph with multiple plots. But
    if for some reason you can't, and must use separate scripts to get each data
    set, then I think you will have to produce separate graphs, each displayed as
    an image on your page.

    The reference manual has an example of multiple plots on a graph, but be aware
    that it is a bit of a hack.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.