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
3 answers

Pchart - Retrieving data from MySQL

I try to create a chart with pchart, I have done like in this link (in official website): https://wiki.pchart.net/doc.mysql.integration.html but everytime I get this error !! Fatal error: Call to a member function addPoints() on a non-object in…
Bizboss
  • 7,792
  • 27
  • 109
  • 174
0
votes
1 answer

in pchart is it possible to have a barchart with only one column ( so only one value)?

Is it possible in pchart to have a barchart with only one value? I have a bar chart that display correctly with 1 serie with any number of values but pchart crashes when the series contains only one value. If someone would let me know this would…
Lince81
  • 815
  • 5
  • 17
  • 30
0
votes
1 answer

PHP skips function call output

I have the following problem require('drawchart.php'); if ( file_exists('drawchart.php')){ cwrapper();} command using the 'chart.png' from cwrapper; The cwrapper is a function inside the drawchart.php that accesses a MySQL and draws a Chart. This…
AndiAna
  • 854
  • 6
  • 26
0
votes
2 answers

Specific divisions and range on Y axis using pChart

I am making a script to generate a plot graph. It will hold values between 1 and 10. My problem is that I want the Y axis to go from 1 to 10 with a step of 1, and by default it ranges between the minimum value and the maximum. I tried to fiddle…
Mihai Scurtu
  • 1,448
  • 1
  • 11
  • 22
0
votes
1 answer

PHP-how to send data to another php-sql page and recive an chart image on the same page

PHP-how to send data to another php-sql page and recive an chart image on the same page hi guys. i have an problem and i dont know how i could solve that. i have an mainpage, where i want to put some data in an input field, which would send the…
0
votes
1 answer

pChat 2.0 DataSet

I am using pChart2.0 to generate a very simple Chart by the example code. The pChart data set to add the points is in the following format $MyData->addPoints(array("Type A","Type B","Type C"),"Types"); I have the following php array to use dynamic…
qammar
  • 79
  • 2
  • 10
0
votes
1 answer

pchart change the color of percentage/values of pie chart

I cannot change the color of the percentage of the pie chart. I want the color to be black but it does not work. This is where I am setting the default font settings. The RGB values are already…
makoto
  • 177
  • 1
  • 4
  • 16
0
votes
1 answer

pChart timeline with gaps

I want to use pChart to render a simple line graph of a sample value vs. the date. I have the basics working, but how do I handle gaps in the date? The samples are already averaged by the quarter year, but not every quarter has a sample. …
Rachie
  • 433
  • 1
  • 6
  • 17
0
votes
1 answer

PHP pChart change color of bars of bar chart

I am developing php statistic part of my app with pChart, but I met a difficulty trying to set the colors of my bars with the pChart librairy. I want to change color of each bar. Is it possible to change the color ? Like for slices ? My chart just…
pollux1er
  • 5,372
  • 5
  • 37
  • 36
0
votes
1 answer

Warning: imageftbbox(): Invalid font filename in C:\...\Classes\pChart.class on line 556, 566, 576, 583, 606, 613, 633, 3329, 3340

So I am getting multiple error messages on my webpage; Warning: imagettftext(): Invalid font filename in on line C:\...\Classes\pChart.class 556, 566, 576, 583, 606, 613, 633, 3329, 3340 Here I am setting the path on my php file, but the error is…
mattz330
  • 59
  • 2
  • 13
0
votes
1 answer

PHP mtChart (new pChart): how do i control the angle of x-axis labels?

I am trying to graph the results of a survey, where the question is multiple choice. eg. How would you describe this website? format: option | number of times selected | percentage of users who selected that option Informative 1 50% All of…
gsquare567
  • 2,847
  • 3
  • 23
  • 21
0
votes
1 answer

PHP Graph libraries not working

I have installed pchart as well as Jpgraph on my system but on running their example sites all I get is a blank page. GD has been already installed on my system and I have checked it already. Do I need to change anything in the php.ini file?
richiesujatro
  • 31
  • 1
  • 5
0
votes
1 answer

zendcore for ibm i V7.0.0 Maximum execution time of seconds exceeded

Running ZEND for IBM i since some month without any problem. Since the december 16 2014, I often have "Maximum execution time exceeded" only on scripts that are generating PDF with image generated by PHP. I was running ZEND for IBM i V6.1.0 on IBM…
0
votes
1 answer

how to reduce the size of 3D pie Graph

i need to decrease the size of 3D pie Graph .i have changed $Radius=100 into $Radius=50 in pChart.class but not happening the size of graph .i am following the link http://pchart.sourceforge.net/documentation.php?topic=exemple11
Renjith P
  • 39
  • 2
  • 8
0
votes
2 answers

PChart - Y Axis does not start from 0

I generate stacked bar chart using PChart, but Y Axis does not start from 0. Is there manual parameter that I should set? Here the chart