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

Labeling Y axis with PChart

I am using PChart for PHP to draw graphs, it is working pretty well. I have drawn a graph with intensities (2 = strong, 1 = medium, 0 = low) and I would like to know if is possible to show on the Y axis the description of the data…
Sortea2
  • 57
  • 1
  • 8
1
vote
2 answers

How to increase pie size in pChart

The method draw3DPie only allow me to position the graph, not to define the size. If I define a bigger image (pImage) only the background of the chart is increased. How can I get a bigger pie?
Enio Carvalho
  • 153
  • 11
1
vote
1 answer

How to include the graph inside the codeigniter export excel

I have the userlist with comment count.I have export excel using below libaraies and codes. How to include graph inside the excel sheet. Here is my output: E.g.: Sno USER CommentCount 1 User1 10 2 User2 12 3 User3 21 How…
Kennedy
  • 325
  • 2
  • 14
  • 35
1
vote
1 answer

pChart don't draw texts

I'm trying to drawn a chart with php and the pChart framework. The issue is that the texts of charts are not being drawn. include "pChart2.1.1/class/pData.class.php"; include "pChart2.1.1/class/pDraw.class.php"; include…
1
vote
1 answer

pChart Bar Charts set color depending on threshold

Good Day To All I'm new to pCharts, works great! I'm trying to create a bar chart with 2 thresholds and display different bar colors. Setting the thresholds is done and works well. Now I would like to set the standard palette to a set color and only…
kirchner20
  • 97
  • 1
  • 11
1
vote
2 answers

pChart2 renders graph in seperate php page but shows gibberish in main page

I am trying to learn pChart2 and php for that matter so my coding may be a little rough. I am having a problem displaying a test chart on my main index.php page. The example works fine when I have all the code in a separate file and view that file.…
user2646288
  • 31
  • 1
  • 5
1
vote
0 answers

Create a pchart using mysql_query

PHP_USER1
  • 21
  • 5
1
vote
2 answers

SetSerieDescription - pChart not working

I'm trying to assign a label to the x axis of a Bar Chart, the label is a normal text string stored in an array under $gsettings['axisXlabel']. Unfortunatly pCharts SetSerieDescription doesn't seem to be working as expected. Below is the function…
tobynew
  • 337
  • 1
  • 3
  • 17
1
vote
0 answers

pChart custom axis crossing

Does anyone know how to draw a chart with pChart library where X and Y axis are crossed at [0; 0], or some custom point other than [x-min; y-min]? I would like to create this chart:
meridius
  • 1,495
  • 1
  • 18
  • 26
1
vote
1 answer

Change line color when negative

I want to make a temperature line graph using Pchart. What I need is that the positive temperature is Red and the negative Blue. Any ideas on how to achieve this effect?
HyperDevil
  • 2,519
  • 9
  • 38
  • 52
1
vote
1 answer

PHP prints /f from behind the curtains

I have an old web site which generates PDF reports and sends via email. It uses Zend_Mail, pChart and Zend_Pdf. I've already noticed that PHP prints out /f somewhere in there, but it is mostly not visible since a new browser tab would only show if…
Marcus Johansson
  • 2,626
  • 2
  • 24
  • 44
1
vote
0 answers

Graphing Dates with pchart

I am trying to use date values for the xaxis but cannot find any documentation on how to do so. I found this for the old version of pchart but the function calls are not the same in the new version of pchart.…
Dan
  • 1,041
  • 1
  • 12
  • 32
1
vote
1 answer

pChart axis X gap in scale

I'm using the pChart library and I want to have a X scale of 1-100 but on the chart I want to have divisions in multiples of 10. I have 2000 data points. Unfortunately my axis X is not readable, as the | is placed at every axis unit, rather than…
kskaradzinski
  • 4,954
  • 10
  • 48
  • 70
1
vote
1 answer

creating charts with pchart and mysql - correct syntax from example provided

I am trying to generate a chart based on the example provided by pchart. Here is my code:
Junaid Hussain
  • 45
  • 1
  • 10
0
votes
3 answers

Gibberish output with pchart

I have been trying to create graphs with pchart library in my drupal 7 site. I have installed and configured pchart properly and when I try to test it with an example provided by pcahrt itself am getting a really gibberish output as shown…
akshaynhegde
  • 1,938
  • 3
  • 17
  • 36