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
0
votes
1 answer
How to make a Dynamic Line Graph in PHP - Mysql
I want to make a dynamic line graph in php with mysql data. Please verify my Attached Image
How to get this type of graph ?

Nisanth
- 323
- 8
- 24
0
votes
0 answers
phpChart_Lite water mark displayin in graph
I am working with PHP graph and using new C_PhpChartX.
PHP Chart Lite.
Graph is displaying very well, but watermark behind graph not being removing.can anone help me how can i remove watermark from graph as i want to use it for live website.
Below…

Ashish Patel
- 3,551
- 1
- 15
- 31
0
votes
0 answers
Fetching SQL Current date for Graph lib php from timestamp
So i have setup the code to display graph from php sql. But i cant seem to order it by todays date from a timestamp in my table. Here is my code:

PICKAB00
- 288
- 2
- 9
- 23
0
votes
1 answer
Phpgraphlib: internal server error
I'm trying to visualize a graph on my web page using Phpgraphlib.
I use the following code:
PHP Script (graph.php):

Giorgio Torassa
- 55
- 8
0
votes
1 answer
PHP array key error/issue
I have a strange problem relating to a PHP array, that I am struggling to diagnose. I have a script that reads temperatures from a SQL db and then displays them via PHPgraphlib. I take the unix epoch time stamp from the database query and convert…

noodles
- 5
- 1
0
votes
1 answer
PHPgraphlib none creation of image
Doing some testing of PHPgraphlib, having a problem creating an image of the graph/s Using one of their examples.
include('lib/phpgraphlib.php');
include('lib/phpgraphlib_pie.php');
$graph = new PHPGraphLibPie(400, 200,…
user3767402
0
votes
1 answer
How to use PHPGraphLib with Codeigniter?
Please someone give me a very detailed tutorial how to use PHPGraphLib with Codeigniter.
I have tried to use but it did not worked.

V. Mark
- 195
- 2
- 4
- 14
0
votes
1 answer
add color to node dagre d3
I have created a tree structure following the link
Reading DOT files in javascript/d3
I need to fill the nodes with color.
Tree data:
I tried adding
[label="abcd" labelStyle="font: 300 14px" style=filled fillcolor=red]
[label="abcd" style=filled…

Harsha
- 33
- 9
0
votes
1 answer
How can I change the title to be located at the upper right side of the graph using Phpgraphlib?
I can easily locate the title to be at the center or to left by using these commands:
$graph->setTitleLocation("center");
$graph->setTitleLocation("left");
… but if I use this:
$graph->setTitleLocation("right");
I don’t even see the graph anymore.…

cronos
- 536
- 2
- 8
- 20
0
votes
1 answer
How to draw multi line graph using phpGraphlib
I have successfully created a line graph using phpGraphlib. But I don't get any idea how to draw a multiline graph using this library . The x-y values are stored in arrays here. My code is here

Dhanya
- 91
- 1
- 8
0
votes
1 answer
how to call a graph creating function in php as img src?
I wants to call a function as image src.I am drawing graph using phpgraphlib. I have tried like this but getting junk values . `

nsds
- 961
- 4
- 13
- 39
0
votes
0 answers
PHPGraphLib modification on generateBars() function for Chart
Hi I am using phpGraphLib to generate charts but I have a problem.
I want to add 2 arrays as data and I want them to be displayed one data column after another data column.
So I changed the constant MULTI_OFFSET_TWO=24 to MULTI_OFFSET_TWO=100, and…

Ani
- 1
- 2
0
votes
2 answers
Formatting output from an array
I would like to create graph by PHPGraphlib using my data from database.
My problem is, that I have array in different format and PHPGraphlib doesn't read it.
PHPGraphlib reads array like this:
$data = array("15:01:14" => .0032, "15:05:14" => .0028,…

Michał Lipa
- 117
- 8
0
votes
1 answer
PHPGraphlib Too Many Datapoints
I'm trying to create a chart of all of our tickets from our helpdesk software based on the month/year that they came in. I have ran the query against the database and am getting exactly what I'm looking for.
I've found PHPGraphlib to generate…

Phonic
- 100
- 1
- 9
0
votes
2 answers
Unable to Display Graph on localhost even GD support is enable
I am trying to display a simple graph on my localhost using php graph library . My code is :
include('phpgraphlib.php');
$graph = new PHPGraphLib(650,200);
$data = array("1" => .0032, "2" => .0028, "3" => .0021, "4" => .0033,
"5" => .0034, "6" =>…

user3531581
- 1
- 1