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
1
vote
1 answer

pChart image render issue on prod server and same script is working on dev server, while configurations are same

I am having the issue with pChart image rendering, The chart image is not displaying on screen on my production server while the same script is working fine on development server. Even,I have checked and compared configuration of both servers its…
zakmail007
  • 165
  • 1
  • 1
  • 4
1
vote
6 answers

samples about generating svg charts

I have to generate some graphical chars, and I've used pChart util now. I'm thinking to use svg based graph from now on, because of the mouse event seems to be handled more easy. I've seen raphael js samples and svgweb library, but i didn't find any…
dole doug
  • 34,070
  • 20
  • 68
  • 87
1
vote
0 answers

Change pchart separtor

I am working on an old system using pchart. Now data is getting loaded into a big table. I managed to remove the seperator there so 4.000 is now shown as 4000. I do experience a problem with the charts itself. The chart is based on the value above.…
Jorn Barkhof
  • 264
  • 1
  • 16
1
vote
2 answers

TCPDF + pChart wont show images

I'm triying to insert a image on the pdf generated by the script. I have put a image that is on the folder and it shows correctly, but the generated one no. In other section of the site, I use the same function to generate and show the image and it…
Brookete
  • 251
  • 1
  • 4
  • 13
1
vote
1 answer

Pchart - Date format

I want to format a date array in mysql format ("2011-03-01") to "d-m-y" format in Pchart. I have tried : $MyData->setAxisDisplay(1,AXIS_FORMAT_TIME,"d-m-y"); But don't change anything. Thanks a lot.
Bizboss
  • 7,792
  • 27
  • 109
  • 174
1
vote
3 answers

pChart does not render to web browser, only shows missing image

pCharts documentation says that you should be able to render the image to the browser using this code. mypic.php $myPicture->stroke; mypage.html The img tag is supposed to invoke the php script. Within the PHP script, the…
Brett
  • 11
  • 1
  • 2
1
vote
1 answer

Pchart prints double values on X-axis

Be gentle.. Using the code below for printing a chart using pchart on a RPI results in the values double printed on the X-axis. My preferred outcome would be single x axis values slightly rotated but whatever I change in the code below it does not…
MaPo
  • 47
  • 7
1
vote
1 answer

Render image with pChart

I am trying to send an image via the pChart 2.1.4 libary via mail. The library is used within my wordpress plugin. I tried the following: /* Create and populate the pData object */ $MyData = new pData(); for($i=0;$i<=30;$i++) {…
Carol.Kar
  • 4,581
  • 36
  • 131
  • 264
1
vote
1 answer

Creating graph with pchart PHP

I tried following the tutorial found on here: https://www.sitepoint.com/charting-with-pchart/ I got up to but didn't start the "Three-Series Chart" section. Just before that, it says that my browser should show a chart similar to the one…
Michael
  • 3,093
  • 7
  • 39
  • 83
1
vote
1 answer

pChart - Is possible to combine a stacked bar chart and a regular bar chart?

I'm trying to use pChart to create a combo chart, using 3 series. Two series would be for a stacked bar and the remaining series would be for a bar chart. What I'm trying to achieve is put a stacked bar column with a regular bar on the side (like a…
user1483255
  • 57
  • 1
  • 8
1
vote
1 answer

pChart example does not render x and y axis labels

I am running the Line Graph example in the pChart website. http://pchart.sourceforge.net/documentation.php?topic=exemple1 The rendered png file is missing the X and Y axis labels as well as the "January" "March" "April" labels. I ran phpInfo and…
rexposadas
  • 3,109
  • 3
  • 27
  • 49
1
vote
1 answer

pChart DisplayValues for only one series

I am using the latest pChart and I am trying to only have one series display its points labels on a line chart. Below you can see the chart and it has 3 series with data point labels on all series. I would like to just have the heavy green series…
1
vote
0 answers

Error: Pchart and Mysql

I will explain my error: I have a form where I type an email shortly after it sends to ConexaoDB.php this page, I store the entered value, connect the PostgreSQL go into the users table and when the email entered and found I store the value in a…
Eduardo Asafe
  • 129
  • 2
  • 10
1
vote
1 answer

Fatal error: Cannot redeclare class pDraw

I am generating a pdf from the mPDF library using the Yii framework. For this PDF I need to add charts generated on the server, so I'm using the pChart library to generate them. I created a simple object class to set the pChart properties in an…
Oscar Reyes
  • 4,223
  • 8
  • 41
  • 75
1
vote
4 answers

How do you label the x-axis in pChart

I am trying to name my x-axis (see picture). As you can see, no x-axis name is printed. However, my code should print one because of this line: $MyData->setSerieDescription("Labels","Range of Data");, unless I misunderstand the usage. Code: /*…
Ryan_W4588
  • 648
  • 3
  • 13
  • 32
1 2
3
9 10