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
2
votes
1 answer

how set a label image for group bar Jpgraph column chart in php

here is my jpgraph demo code:
Robinson
  • 151
  • 1
  • 3
  • 14
2
votes
1 answer

Jpgraph : how set label for group bar column chart in php

here is my jpgraph demo code:
Robinson
  • 151
  • 1
  • 3
  • 14
2
votes
3 answers

PHP / JpGraph - Memory not freed on completion of function

My application needs to generate a pdf file with a bunch of graphs in it. The situation: I'm using FPDF for pdf generation and JpGraph for the graphs. My code gets the graph data from a database and iterates through, calling a function for each…
John
  • 222
  • 1
  • 5
  • 17
2
votes
1 answer

JPGraph size of pie graph

I already had a functioning pie graph here (in terms of the data being displayed). It is a multi-pie graph showing 3 pie graphs in one graph. My problem is that I wanted to make my graph size bigger so that everything can fit the area and yet be…
Brandon Young
  • 523
  • 2
  • 8
  • 19
2
votes
1 answer

Overlay Text on bar in JpGraph

I'm using JpGraph to make a Gantt chart for a convention. I found this example at the bottom of the page and I'm trying to alter it to what I need displayed. I was able to set the leftMark to the side of the bar that I want the text to appear.…
Leoa
  • 1,167
  • 2
  • 14
  • 31
2
votes
3 answers

JpGraph Error: HTTP headers have already been sent

The problem is that the JpGraph is not displayed correctly on my web-page. The strange thing is that if I run the above code in isolation, then it works. But if I insert it in my main code, it fails producing the above-shown message. P.S. I'm using…
Klausos Klausos
  • 15,308
  • 51
  • 135
  • 217
2
votes
1 answer

JpGraph: How to control x/y offset, margins and color in v3.5.0b1 when using AccBarPlot?

A little background I am attempting to migrate a project built with Symfony 1.2 from one server to another. One of the functions of the project is to build a graph (originally done with JpGraph 2.3.5). The graph does not display as intended without…
codemonkee
  • 2,881
  • 1
  • 25
  • 32
2
votes
1 answer

How to bring JPGraph second Y-axis data in front (AddY2)?

I have this JPGraph (with proper data): // Create the graph. These two calls are always required $graph = new Graph(640,350,"auto"); $graph->SetScale("textlin"); $graph->SetY2Scale("lin",0,100); // Create the bar graph $bplot1 = new…
1
vote
2 answers

cakephp 2.0 jpgraph

I have had a difficult time getting jpgraph to work with cakephp. I have a Controller called "Graphs" and all it does is display the view. View/Graphs/index.ctp is very simple: echo "This is an image of my report"; echo "
JCR
  • 63
  • 2
  • 7
1
vote
0 answers

Jpgraph and the width (Y-axe)

I'm using jpgraph to representate to graphic some variables, this variables have long width (from 1 to 10.000.000) and with jpgraph is all okey but i have a probles with the Y-axe, it simply to view: http://www.freeimagehosting.net/f2c2a The axe its…
1
vote
1 answer

Add an horizontal line or a band to jpGraph

I'm trying to add a simple horizontal line (or a band) to my graph and for some reasons, it doesn't show anything. I used the lines: $graph->AddLine(new PlotLine(HORIZONTAL,0,"black",2)); or $graph->AddBand(new PlotBand(HORIZONTAL,BAND_RDIAG,0,…
Laurent
  • 188
  • 2
  • 13
1
vote
1 answer

Uncaught Error: Class 'LinePlot' not found

I am trying to make a line graph in JpGraph and when I copy the official code from here it returns the error Fatal error: Uncaught Error: Class 'LinePlot' not found in /opt/lampp/htdocs/graph/official.php:34 Stack trace: #0 {main} thrown in…
qwessin
  • 11
  • 1
1
vote
1 answer

Minimum value for graph axis

I am trying to make a bargraph that plots times. So what the technical issue we are trying to get the minimum plot value to something. For example if what I was trying to graph was 4 min 30 s (4:30), 4:45, 4:15, and 4:20, I would like the y=0 value…
Zigu
  • 1,625
  • 4
  • 23
  • 33
1
vote
1 answer

JPGraph PHP chart

I want to create a pie chart using JPgraph. in a php file i've two arrays as a result of some process. using JPgraph, i want to plot these 2 arrays in a pie chart. one array consist of the percentage value and the other consist of the value name. i…
aTFa
  • 33
  • 1
  • 7
1
vote
2 answers

Is the JPGraph library dead?

I cannot find any link to the official jpgraph forum. Moreover, the last "real" release was made more than one year ago. Is this library dead? If so, what library could be used in its place with minimal disruption to existing code? Perhaps there has…
Niwata
  • 58
  • 3
1 2
3
15 16