Questions tagged [pchart]

pChart is an object oriented PHP charting library.

pChart is a community led PHP library that uses PHP GD & Freetype extensions to generate chart images on the server side to be directly fed to the client's browser or applications such as email or PDFs.

138 questions
0
votes
1 answer

Pchart 2.0 large data description

I have a bar chart, I want to show a description in the abscissa instead of the value of each bar. The description is very large and I want to know how to set a width for that description. This is what I'm getting And this is what I want Thanks…
saRca
  • 142
  • 1
  • 10
0
votes
1 answer

Scale spacing in pchart bar chart

I'm actually using pchart to display bar charts containing integer values. But, the scale displays automatically : 70 | 58.33 | 46.67 | 35 | 23.33 | 11.67 | 0 | I want it to be in integers only, do you know how I can get that? I want it…
lour
  • 25
  • 1
  • 6
0
votes
1 answer

How to draw vertical line (ie: x = some values)?

I'm drawing a time series chart. I need to draw vertical line at every start of month. How I do it using pChart 2.0? I read the documentation but didn't found any function to do it.
shankshera
  • 947
  • 3
  • 20
  • 45
0
votes
1 answer

Plot sinle record in the line graph

i have the sample code in this location, i want to plot only one year record in the line graph. example: in 2011, Total number of male is 70, i want to plot this into line graph, example screen shot attache in this…
Bharanikumar
  • 25,457
  • 50
  • 131
  • 201
0
votes
1 answer

pchart displays VOID instead of not drawing the line

So I have this code : if($farateze_dec == 0 or $farateze_dec == NULL) { $mediageneraladecembrie = VOID; } elseif($cuteze_dec == 9 or $cuteze_dec == NULL) { $mediageneraladecembrie = VOID; …
Acelasi Eu
  • 914
  • 2
  • 9
  • 30
0
votes
1 answer

It is possible to embed a pchart in a function?

I want to populate a chart with dynamic data, but in order to do so, I want to embed the pchart php file in a function, and then call it with echo " "; Is this possible? Here is what i`ve done: function grafice() { /*…
Acelasi Eu
  • 914
  • 2
  • 9
  • 30
0
votes
1 answer

Why the pchart chart does not render? I have gd2 installed

I am trying to integrate a chart into a website. I tested the gd2 installment by trying to see the examples, which works, see here. Then I went ahead and integrate it in my php file, using this code: include("grafice/class/pData.class.php"); …
Acelasi Eu
  • 914
  • 2
  • 9
  • 30
0
votes
1 answer

Defined X and Y Axis in pChart 2.0

I'm using the line graph of pChart for a partograph. Now, my problem is, I can't define the values for the x and y axis. The y-axis will adjust automatically depending on the data that is set on the graph. This is not what I want. Please see…
gbs09288
  • 1
  • 1
0
votes
0 answers

How can I add a trendline in pchart?

I am creating charts for a admin dashboard in our in-house CRM, however I am having a bit of trouble adding a trend line. I can't seem to find any documentation for a built in function so have attempted to do it using an sql query which is clunky…
June Lewis
  • 355
  • 1
  • 6
  • 28
0
votes
1 answer

pChart a graph for each row

I'm new at using pChart. I take data from database to construct the graph. I will have a random number of rows and I would like to do a graph for each row. (one row -> one graph). Is it possible? So far I can do the graph but all the rows are in the…
usertfwr
  • 309
  • 1
  • 6
  • 31
0
votes
1 answer

3D graphs using pChart

Is there a way to draw a 3D Bar Graph using the pChart library in PHP? I'm able to draw a 3D Pie graph but not a line graph. My code looks as follows //The 3D bar graph # // Dataset definition $DataSet = new pData; //…
Elitmiar
  • 35,072
  • 73
  • 180
  • 229
0
votes
1 answer

PHP: Need help passing pChart URL variables

I'm having trouble passing arguments from html into a php script that I'm using to generate a simple line graph. I'm attempting to use the $_GET method to retrieve the variables. Here's my html code;
iYeager
  • 47
  • 2
  • 7
0
votes
2 answers

How to preserve form values after submit and executed form action

I made some PHP script with a form that contains dozen of text fields, some of them like text fields arrays, others as single text field. Part of these values I try to pass to another PHP script (pChart lib script) where I read them into variables…
Ludus H
  • 239
  • 2
  • 15
0
votes
2 answers

pChart 2.0 Image Maps & Caching At The Same Time?

Is it possible to use image maps and cache the charts at the same time? When I enable caching, the image maps are no longer created. I need to have the image maps so the value is shown when i mouse over it, but I would like to be able to cache the…
cmnybo
  • 1
  • 1
0
votes
2 answers

PHP: using strtotime to convert a MySQL UTC date for pChart use

I've RTM, but I'm really not sure how to use the strtotime function to convert a date from UTC to unix time, because I'm not sure what variables go where. Here's the specific code: $value = $_POST["Attribute"]; $Customer =…
Soop
  • 345
  • 5
  • 19