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

display data from MYSQL in pChart graph

Hi i´m a newbie in pChart, i want to build a chart from my sqldata with pChart. I wrote this code
user3559628
  • 51
  • 1
  • 7
0
votes
3 answers

"The image cannot be displayed because it contains errors" when using pchart Render method

I am trying to use the pchart package (over php) to build (and directly display) graphs/charts. At this time, I am just trying to run their provided example (Example1.php), where I just have replaced the…
user1159290
  • 951
  • 9
  • 27
0
votes
2 answers

Set different line format for a graph with more than one serie with pChart

I am actually using the pChart PHP library for generate graphs. I wanna know if it's possible to give a different line format for a graph with multiple series. I need a line with for example 3px of width but other line with 1px of width. Is that…
woodgate
  • 183
  • 1
  • 8
0
votes
1 answer

pchart pie chart legend and graph not correlating

I have ten values in the dataset, numbers 1 - 10 and corresponding values. Some of the values are coming back as zero, so they are not added to the chart, BUT, the legend is still listing 1 - 10. Because there is values missing in the chart, the…
madphp
  • 1,716
  • 5
  • 31
  • 72
0
votes
2 answers

PHP: Split unix timestamp range into 5 chuncks

I have a requirement where I need to extract 5 points from a Unix time stamp or PHP time stamp range. For Example, From 2014-06-26 07:53:26 to 2014-06-27 07:52:46. I need five points from these two dates in exact or approximate intervals, to chart…
Martin Solomon
  • 163
  • 1
  • 6
0
votes
1 answer

Charts created with pchart gives time out

Im new to pchart and I'm getting problems (probably something I missed) on creating a chart from a mysql table. What I want is just chart one row depending the item I will select. This it worked only one time, then every time I try to run the script…
Reivjax
  • 13
  • 4
0
votes
1 answer

pchart labels and text not showing

searched everywhere and read every post on this and can't find a match so here goes: Have a Codeigniter/PHP graphing/charting app written using pchart library. Works fine locally on Windows 7, but labels and all text is missing when I delpoy to…
0
votes
1 answer

phpmyadmin - stacked charts broken

In phpmyadmin 4.2.2 and 4.0.4, I cannot recreate three column stacked charts as per the documentation: http://wiki.phpmyadmin.net/pma/Charts#Three_columns SELECT 225 AS 'Amount', 'Tele2' AS 'Operator', '2009-11' AS 'Month' UNION SELECT…
dandan
  • 1,016
  • 8
  • 16
0
votes
1 answer

Multi Array Prep for Charting

I searched for answers and could not find one. This is long and complex and looking for someone smart than me to answer. Here is the situation. Using PHP, SQL, and trying Pchart. 1) Please do not suggest other charting tools. That is a waste of your…
0
votes
1 answer

PChart Right axis to show labels for specific values

I currently have the wind chart shown below working with the mean, low and high values. What i would like to add but i can figure out is: I need a plot a right hand scale that would show the wind force. I would guess this would be set as a label…
Steve Taylor
  • 301
  • 3
  • 14
0
votes
3 answers

pChart - Display png image on browser

I am using the pChart class library to display .png Image on the browser. Through AJAX, I call the controller action graphgenerator to call generateGraph function in a model and display the output through a view on the browser. The generateGraph…
Jake
  • 25,479
  • 31
  • 107
  • 168
0
votes
1 answer

pchart stroke function

The call to Stroke() function in pChart renders an Image. When I try to display this image on the browser, it shows something like the following instead of showing an image. How can I display the image instead of these wierd characters? �PNG ���…
Jake
  • 25,479
  • 31
  • 107
  • 168
0
votes
1 answer

Start graph from nth index in Pchart

I am using PChart library, and I wanted to start graph from 5th index on x-axis. Is there any idea? I am already doing this: $myData->AddPoints(array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"), "xlabel"); I am getting…
Shakeel
  • 23
  • 7
0
votes
1 answer

pChart input in array

I'm tryin to input into my array string obtained from retreiving data from file. But it reads only first value. This is how i'm retreiving data set; $file = explode(" ", file_get_contents("data/data-02")); foreach ( $file as $content ) { …
Kordian Wikliński
  • 55
  • 1
  • 3
  • 11
0
votes
1 answer

php draw graph using pchart

I am using the following code to draw a graph, but witout success:
Shakeel
  • 23
  • 7