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

Wrong legend colours

I'm upgrading a very old codebase from JpGraph/2.3 to 4.2.0. The biggest issue is that legend colours no longer match graph colours: $good = new BarPlot([10, 12, 11, 9]); $good->SetLegend('Good'); $good->SetFillGradient('#089B81', '#089B81:1.2',…
Álvaro González
  • 142,137
  • 41
  • 261
  • 360
3
votes
2 answers

how to set auto refresh after 1 second in JPGRAPH

I've an array for Y-axis and i want to display them in graph...and want to reload that graph after every second... i got this graph using an AJAX and display in HOME PAGE... Chart code is as below.. function graph1() { $dt=array(); …
Harddy
  • 69
  • 1
  • 10
3
votes
2 answers

JPGraph - Bar Graphs are not showing values

I'm using the latest version of JPGraph and I'm trying to alter the graph_api file to show values on Group Bar Plots. Here's a snippet of code to show my alterations (for those looking at the API, this is in the graph_group function): $tot = new…
LNendza
  • 1,350
  • 1
  • 12
  • 21
2
votes
4 answers

JPGraph bottom margin with Legend on/off

I have a problem with PHP Graphing library at JPGraph.net . I have a really simple LinePlot() and if i add a legend to the graph the bottom margin of the graph extend by circa 10 pixels. Making the graph legend Show() or Hide() doesn't make any…
Vladimir Benc
  • 21
  • 1
  • 4
2
votes
1 answer

custom logarithmic scale for line-graph

I am kinda stuck with this problem in jpgraph: I need to create a diagram (line) that shows the users progress in a online-game with about 6000 other players. So the y-axis shows the users position in the ranking and goes from 6000 to 1 (last…
MarcoSz
  • 61
  • 1
  • 6
2
votes
3 answers

Draw line charts. Moving from JpGraph to Raphael JS

I've an application that based on some values from different inputs (temperature, humidity...), show different charts.So far I've done that with JpGraph, and I found it pretty easy to do. You can add a legend easily, and plot as many functions as…
Nobita
  • 23,519
  • 11
  • 58
  • 87
2
votes
1 answer

jpgraph textint y-axis returns 0f instead of number

I'm trying to create a simple graph with jpgraph (which is a new thing for me, I've used the example for the bars graph from their website.) and want the y-axis to return whole/rounded numbers. So I've searched the web and found out I have to use…
Miranda Breekweg
  • 207
  • 1
  • 2
  • 11
2
votes
1 answer

Jpgraph position text at certain x-value position

I'm using JPGraph with a simple Line plot. It's possible to create a text or image and position it vertically and horizontally centered on a point of my line? Something like: $txt = new…
user3450548
  • 183
  • 11
2
votes
1 answer

JPGraph : how to hide plot line when going above x-axis?

I set custom scale for my plot line in JPGraph, using : $graph->SetScale('linlin', 60,200); You can see the result here : http://screencast.com/t/jMKHg1XUis The display is correct but i would want to hide the plots that come out of the range (below…
Micbol12
  • 53
  • 1
  • 4
2
votes
1 answer

How do I include a jpgraph in tcpdf

I want to generate a PDF file with some information on it, then send it to some email address. The information inside the PDF will contain among other stuff, a PIE that I generate using jpgraph. Of course, the chart will be dynamic, so it's not an…
user1137313
  • 2,390
  • 9
  • 44
  • 91
2
votes
1 answer

Output JPGraph in Symfony 2

I'm attempting to have a Symfony 2 Controller generate a graph from JPGraph. The issue that I'm having is getting Symfony and JPGraph to work together reliably. I made my controller, and I have made sure that I'm getting inside the function, but I'm…
Gyhth
  • 1,155
  • 9
  • 21
2
votes
2 answers

JpGraph LinePlot output exceeds graph area when using SetScale

I'm using JpGraph to graph some data. When I use the SetScale function to force a y-axis range the output visually overflows the graph area. I would like to have the output cropped to the graph area.
davidk
  • 784
  • 1
  • 6
  • 22
2
votes
0 answers

JpGraph Error - Graph no longer shows - Header issue

My site used to work just fine but I have adjusted a few small things, such as adding a htaccess file to fix urls etc. Now I have noticed my graphs do not display on my site. This is the page in…
Jimmy
  • 12,087
  • 28
  • 102
  • 192
2
votes
1 answer

how to handle lengthy label on x-axis in jpgraph when it is rotated 90 degree.

I have made a horizontal bar graph using jpgraph, and rotated it 90 degrees. But the label on x-axis is being cut off, i.e not shown whole label. I have set $graph->theme = null; and also set margin. But nothing changes. Please suggest me way to…
Dhirender
  • 604
  • 8
  • 23
2
votes
1 answer

jpgraph x axis scale

how can i tell jpgraph to show x-axis ticks every month? I have two charts, in one i show results from 1 year and on other i show results from beginning to end. On year graph it shows weekly results and i like it but in case of showing bigger date…
Bojan Kovacevic
  • 778
  • 7
  • 19
1
2
3
15 16