PHPGraphLib is a lightweight PHP-based graphing library that creates slick PHP graphs for incorporation into a website or application. PHPGraphLib is free to use for personal use, and can be used for a small fee commercially.
Questions tagged [phpgraphlib]
35 questions
9
votes
1 answer
How to download Google Chart API?
I am using Google Chart in one my Program, The program will run locally and have no internet access to use Google Charts. Can you please tell me where can i download the Library, I searched on net but failed to find out any possible way to download…

user3480644
- 577
- 4
- 8
- 23
2
votes
1 answer
Render graph with tcpdf
I use PHPGraphlib to render graph and TCPDF to generate PDF report.
Now i want to render my chart on pdf file.
I have file chart.php
99, "Mary"=>98,…

jarmouz
- 175
- 1
- 1
- 7
2
votes
1 answer
the image"http://localhost/chart/graph.php" cannot be displayed because it contains errors In PHPGraphLib
I'm not that good in PHP, what might be wrong with my code? Pls! Help.
Here's my code in showing the graph:
function show_graph($input) {
$dataArray1 = array();
$dataArray2 = array();
//get data from database
$sql = sprintf("SELECT target_date,…

hakaray
- 21
- 1
2
votes
1 answer
Save phpgraphlib graph as image
My code generates graph from SQL and I am using phpgraphlib for generating the graph. Is there a way to save this graph as a image to a specific location on a server?
Thanks in advance.

yokoyoko
- 265
- 3
- 11
1
vote
1 answer
Unable to add and render multiset data to the Remote API for PHPGraphLib
I am using the remote API for the library.
My Data Structure
$graph = new \stdclass;
$graph->width = 500;
$graph->height = 350;
$data1 = array('gross'=>23, 'taxed'=>45, 'discount'=>20, 'revenue'=>32, 'due'=>14);
$data2 = array('gross'=>15,…

Nitish Patra
- 289
- 5
- 20
1
vote
0 answers
Create a bar graph with filter
I created a bar graph for fast moving and slowmoving products. I already load the graph, but when I filter the graph by month, the the image will no longer show.
I think $_POST method causes the error because when I put a static value to my query,…

mimi
- 27
- 4
1
vote
1 answer
Php save the generate graph as an image and convert mpdf
I am trying to create a graph in codeigniter and convert it to pdf. For pdf conversion I am using mpdf.
For graph generate I tried several method . including - phpgraphlib,phpmygraph5.0 and also gcharts..
gchart is generating the graph in…

oxvoxic
- 325
- 2
- 4
- 19
1
vote
1 answer
How to render overlaying graphs in PHP with limit areas in the background
I need to render 2 graphs in 1 image. Values of 1st will be product prices (bar chart), and 2nd will be price ranges. What I want to do, is render areas of those ranges and on top of them render actual prices of products, so I can see if product is…

WellBloud
- 927
- 4
- 13
- 29
1
vote
1 answer
How to show PHPGraphLib graph inside a html form
I am using php lib graph to show some data from database. When I am using it inside a div element of my page the graph image is displayed. But I am unable to show the other page elements like…

user1755949
- 93
- 1
- 12
1
vote
0 answers
PHPGraphLib scientific notation Issue
I am using this graphing library to generate a few basic graphs. The issue I am having is that is cases where the values for the Y axis are over a million, The graph renders the numbers in scientific notation.
I'm not sure if this is a PHP issue…

Karan Lamba
- 11
- 2
0
votes
0 answers
phpgraphlib dark image with php 8.2 -> error handeling
I have worked multiple years with the PHP-Library chart generator.
I have made hundreds of charts.
I have made the upgrade with my server to PHP8.2 and guess?
The library doesn't want to work anymore.
Somebody brilliant to help me (us, I'm not…

gvanaco
- 1
- 1
0
votes
1 answer
PHPgraphlib PHP Warning count() Parameter must be an Array or Object (line 926)
I use PHPgraphlib for many years and like that it generates a reliable image instead of some fancy Javascript-stuff. Now since update to PHP7, it renders a log-error on line 926 of the original code:
PHP Warning: count(): Parameter must be an array…

Juergen
- 11
- 2
0
votes
1 answer
phpgraphlib A non-numeric value encountered for php version 7.1
I was using PHPGraphLib for my php version 7.0 and it was working absolutely fine. However, I have switched my local server from 7.0 to 7.1 and now it has started giving me an error saying..
A non-numeric value encountered
at…

Mittul At TechnoBrave
- 1,142
- 3
- 25
- 70
0
votes
0 answers
PHP - PHPGraphLib - changing the font-size of the values in the graph?
I am generating graphs from mysql database but the font-size of the values in the graph are very small (like 8px or 9 px).how to make them bigger? is there any parameter like "$graph->setDataValues(true);" or "$graph->setDataValueColor('navy');"

Dhaker Hassen
- 1
- 2
0
votes
1 answer
Black screen with PHPGraphlib PHP charts demo
I am trying to implement the PHP Graph demo (http://www.ebrueggeman.com/phpgraphlib/documentation/tutorial-mysql-and-phpgraphlib) for php chart given in this tutorial. But on adding the second line of the demo, it is giving a black screen. These are…

user20152015
- 344
- 2
- 23