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
31
votes
0 answers

JPGraph 4 & 3.5 - When a line appears atop a barplot graph, it is rendered twice in slightly different positions. Why?

There appears to be an issue with JPGraph version 4 & 3.5 when creating a Bar Plot graph with a line on top. The line appears to render twice in a slightly different position. If I revert the library back to version 3 it solves the issue. I…
Chris Townsend
  • 2,586
  • 2
  • 21
  • 41
10
votes
1 answer

Adding customized straight line on x-axis by jpgrph

I would like to ask how to add the customized line into chart by using jpgraph. For example, to identify SUNDAY on date which selecting from database, the jpgraph will draw a straight line with red color on each Sunday which will be showed on…
Chris.C
  • 297
  • 3
  • 17
9
votes
1 answer

Fill the gradient colour in my custom shape polygon jpgraph

I am working with the jpgraph and creating radar chart. Facing the issue with fill custom shape polygon with gradient colour. I have function to fill a gradient colour polygon with a flat bottom and i want to fill the gradient colour in my custom…
Jayson
  • 1,105
  • 7
  • 25
7
votes
6 answers

How to embed a graph (jpgraph) in a web-page

I am using this script which is one of the examples provided by jpgraph itself. When I put this on a web-page (blank) by itself, it's drawing the graph. But when I embed the code in already existing web-page (with some content), it ain't drawing a…
Nitin Venkatesh
  • 281
  • 1
  • 5
  • 13
7
votes
3 answers

Jpgraph wont change colors on my barplot

I'm just getting started with jpgraph and XAMPP I was looking to make a barplot. As I was reading some articles on the web it said you could pass in an array of colors to setfillcolor so that each bar would be a different color. However whenever I…
Zigu
  • 1,625
  • 4
  • 23
  • 33
6
votes
2 answers

JpGraph setWeight for solid line

Can you help me how to set weight of solid line on JpGraph? Line is created with // Create the first line $p1 = new LinePlot($datay1); $p1->SetStyle('solid'); $p1->SetWeight('20'); $p1->SetColor("#6495ED"); $p1->SetLegend('Line…
user198003
  • 11,029
  • 28
  • 94
  • 152
5
votes
3 answers

JpGraph pie chart slice color not work

I used a JpGraph in php. Everything ok but slice ($p1->SetSliceColors($color);) color not work. It all time default color. Here is my used code. Please help me : $data = array('40','50', '10'); $Legends = array('Loss','Win', 'Draw'); …
Saidul Haque
  • 606
  • 7
  • 11
5
votes
2 answers

alternative to jpGraph

This is my first time generating graphs using php. Do you know of any alternatives to jpGraph?
Wern Ancheta
  • 22,397
  • 38
  • 100
  • 139
4
votes
1 answer

Updating spline class on a graph so that the highest peak is the marker position - JPGraph

I have created a graph using Jpgraph (http://www.jpgraph.com). Jpgraph has a spline class which smooths out the lines on the line graph. However it does not work as I expected. As you can see, the highest peak of the line goes above the actual…
Ryan NZ
  • 616
  • 1
  • 9
  • 25
4
votes
1 answer

How to set min & max range in JPGraph and how to set colors for lines crossing horizontal line?

I would like to draw something like this with JPGraph: I've tried it but I got something like this: Problems: The first problem is that I can't set min & max for range on Y-asix. (this sometimes works and I don't know why) And I don't know how to…
Martin Ille
  • 6,747
  • 9
  • 44
  • 63
4
votes
4 answers

display items' values in bar chart in Jpgraph

I am using jpgraph bar chart. It all works fine but there is one thing I could not really figure it out. I need to display the value of each bar on the top of that bar (column) but it seems like I am missing something that I cant do it. I have tried…
M Reza Saberi
  • 7,134
  • 9
  • 47
  • 76
3
votes
4 answers

JpGraph: LinePlot->SetWeight will not work

I am using JpGraph version 3.5.0b1 to create some graphs for a PDF document and I have hit a problem that has taken half of my day trying to work out whats going wrong. All i want to do is change the line thickness of my lineplot but no matter what…
Kevin Orriss
  • 1,012
  • 3
  • 11
  • 24
3
votes
1 answer

JpGraph legend order

I'm using an accumulated bar plot with JpGraph and want to change the order in which the items appear in the legend (I want to sort them alphanumerically). I've checked the documentation, but didn't find anything related: do I have any options for…
akosch
  • 4,326
  • 7
  • 59
  • 80
3
votes
1 answer

in jpgraph js library, for line graph, is it possible to have dots of different (customly defined) colors?

In jpgraph js library, for LinePlot, is it possible to have dots (plot marks) of different (customly defined) colors? Any experience anyone? I need to make different colors for some of the dots in the graph, for some values of x-axis.
Vladimir Despotovic
  • 3,200
  • 2
  • 30
  • 58
3
votes
2 answers

Plot bargraph-jpgraph using php

I am plotting a bargraph using jpgraph library but I am finding a way to do few changes such as: (a) X-axis already has texts A, B, C, D. How do I add another set of texts, for example Plot A has 3 bars, and I want to label each bar as 1, 2, 3 as…
user11458208
1
2 3
15 16