SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast rajasreekm's Avatar
    Join Date
    Sep 2009
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs down Horizontal Bar Graph using BarDiagram() in FPDF

    Generated Horizontal Bar Graph (mysql data) using BarDiagram()..Bar Diagram in first A4 page ok...but after the pagebreak each data appears at the bottom of the next page, then after that it becomes unpredictable to the extent that it can print multiple empty pages, or throw individual cells down the pages...How to solve this issue

  2. #2
    SitePoint Evangelist priti's Avatar
    Join Date
    Aug 2006
    Location
    India
    Posts
    488
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sharing link which may be helpful For Bar charts

    http://www.fpdf.org/en/script/script28.php

  3. #3
    SitePoint Evangelist priti's Avatar
    Join Date
    Aug 2006
    Location
    India
    Posts
    488
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just added more data in the main array and received the messed up output. But then I added the header columns i.e

    $pdf->Cell(30, 5, 'Number of men:');
    $pdf->Cell(15, 5, $data['Men'], 0, 0, 'R');
    $pdf->Ln();

    I added above set of code for newly added array values. and then the graph and legends were all good.


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
  •