Questions tagged [jpgraph]

JpGraph is an Object-Oriented Graph creating library for PHP

JpGraph is a graph drawing open source software component written in the PHP programming language.

233 questions
0
votes
1 answer

Installing JPGraph with Hostgator website

I've been trying to install jpgraph to my hostgator website but there's a problem somewhere which I can't figure out. There's a few things which are causing me to think the problem could be in several places; first, when unpacking the file to my…
Maudise
  • 131
  • 9
0
votes
1 answer

Getting a simple JpGraph working with dynamic data

Im struggling to get a simple example working, once i see a working example i should be fine but cant get to that point, heres my code: foreach($users as $user => $tbl_user_id) { $query = "SELECT * FROM my_table WHERE name = '$user'".…
user1547410
  • 863
  • 7
  • 27
  • 58
0
votes
1 answer

jpgraph doesn't work

I am developing a web application about statistics, so I am using the library jpgraph What is going wrong is that the graph does not appear. Displays only the browser's broken image icon. $num = 20; $num2 = 10; $data = array($num,$num2); $graph =…
extrass
  • 23
  • 1
  • 6
0
votes
2 answers

PHP no permission to write to file in MAC

I am using XAMPP(PHP APACHE MYSQL) to develop a program in MAC. When I try to use JPGRAPH to write to file, code: $fileName = "/img/bar.png"; $graph->img->Stream($fileName); I got this warning: Cant write to file, check that the process running PHP…
Li'
  • 3,133
  • 10
  • 34
  • 51
0
votes
1 answer

Legend in JpGraph

How can I get nice noticable "square" mark elements in legend, like in this example: http://jpgraph.net/features/src/show-example.php?target=new_bar6.php All the time, I'm getting legend like in next…
user198003
  • 11,029
  • 28
  • 94
  • 152
0
votes
1 answer

How to embed php code within jpgraph page

below is my jp graph code include_once ("jpgraph/jpgraph.php"); include_once ("jpgraph/jpgraph_scatter.php"); // Some data for the points $datax = array(3.5,13.7,3,4,6.2,6,3.5,8,14,8,11.1,13.7); …
Friend
  • 1,326
  • 11
  • 38
  • 62
0
votes
0 answers

getting images via ajax fails

Hi i use Jpgraph for reporting and i work with Codeigniter Ajax-Jquery-Json. Here is my situation: Images does not appear in the browser and i get this response in Firebug console: encode image and illisible Characters Codes: Controller: function…
0
votes
1 answer

jpgraph works localhost but not on web

I have made a .php file that produces a graph and it shows perfect when run from localhost. When I put it in my web-folder /var/www/"my-dyndns-web-adress.com"/web/ I get a blank page (my-dyndns-web-adress is fake instead of my real one). From tail…
0
votes
2 answers

Change the length of the labels on the x-axis in jpgraph (Charts)

I have created a graph using jpgraph - it works however due to the length of the labels on my x-axis some of text is being 'cut-off' an isn't visible. I have created a custom function to use the newline but even with this it still trims off a few…
Zabs
  • 13,852
  • 45
  • 173
  • 297
0
votes
2 answers

PHP jpgraph won't display multiple graphs

I've been trying to display two graphs on the one screen using jpgraph php code. According to jpgraph this can be completed by following one of two methods see here. While I can get any one of the four graphs to appear individually using…
Darci Wallis
  • 1
  • 1
  • 1
0
votes
0 answers

Jpgraph image not completely loading when added to zip file

PHP Application should add a graph generated with jpgraph to a zip file: $zip_obj = new ZipArchive; $res = $zip_obj->open("../temp/$zip", ZipArchive::CREATE); if ($res === TRUE) { $str = file_get_contents(urldecode($url)); …
fcaserio
  • 726
  • 1
  • 9
  • 18
0
votes
1 answer

Image (graph) from AJAX displayed as a bunch of symbols on page

I'm using jpgraph to plot some statistics graphs for my site, and I want to do this without refreshing the page. So I put the jpgraph code in a separate file, named it plot_graphs.php and send requests to that through AJAX. Now, if I open the file…
sveti petar
  • 3,637
  • 13
  • 67
  • 144
0
votes
1 answer

JpGraph font file error

I am trying to insert a graph after reading my DB. The problem is that I get the following error: I already tried changing the permission in my jpgraph folder without succes. In my local computer it is working fine but once it is in the server it…
Jesus Ibarra
  • 551
  • 2
  • 5
  • 11
0
votes
2 answers

Redrawing a graph dynamically every second

I'm reading data from a constantly updated text file, roughly around every 0.5-1 second. Currently I have it worked out by using the refresh header in my PHP script, and I'm using jpgraph library to generate the graph. However the problem is that…
Patokun
  • 17
  • 1
  • 2
  • 4
0
votes
2 answers

Somebody knows how to include jpgraph into dompdf?

Somebody knows how to include jpgraph into dompdf? This is my code for DOMPDF: //generamos el PDF require_once("../dompdf/dompdf_config.inc.php"); if ( get_magic_quotes_gpc() ) { $html = stripslashes($html); $old_limit =…
Jesus Ibarra
  • 551
  • 2
  • 5
  • 11
1 2 3
15
16