www.webdeveloper.com
Results 1 to 6 of 6

Thread: PHP library for generating attractive charts

  1. #1
    Join Date
    Jul 2013
    Posts
    4

    Question PHP library for generating attractive charts

    I'm trying to use JpGraph to generate bar charts but the result is pretty ugly.

    Code:
    require_once('jpgraph_bar.php');   
    
    $bplot = new BarPlot($xdata);   
      
    $bplot->SetLegend('Investments');   
      
    $bplot2 = new BarPlot($ydata);  
    $bplot2->SetLegend('Profit');   
      
    $accbplot = new AccBarPlot(array($bplot, $bplot2));  
    $accbplot->SetColor('darkgray');  
    $accbplot->SetWeight(1);   
      
    $graph->Add($accbplot);
    Could you suggest some other library or am I sumply using the tool wrong? The snippet I try is taken from
    How to Create Graphs Using JpGraph in PHP Applications

  2. #2
    Join Date
    Dec 2012
    Posts
    137
    Have you tried using the Google Chart APIs?

  3. #3
    Join Date
    Jul 2013
    Posts
    4
    iBezi, never before. Looks stylish. I'll try, thanks!

  4. #4
    Join Date
    Feb 2014
    Posts
    1

    Data Visualization Software Lab

    You might want to check out this javascript html5 chart library

    They (we), provide very nice looking, interactive HTML5 charts.

  5. #5
    Join Date
    Feb 2014
    Posts
    1
    Hey I also suggest to you to use Google Char APIs , you can do a great job with that

  6. #6
    Join Date
    Feb 2014
    Location
    England
    Posts
    52
    The google charts api is a bit annoying to get your head around at first, but once you have it's so easy to do some pretty cool looking charts. The hard part is finding good data to test the awesome charts on

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles