pchart

pChart php graph generation

I want to know a way of inverting the y-axis using pChart. I want the y-axis to start at 0 and 1,2,3,4 etc down, rather than up if that makes sense. In the case of search engine rankings a lower number is better and I want the graph to reflect that by inverting the y-axis. Any ideas? ...

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 ��� IHDR����������h����tRNS������7X}�� �IDATx���wt[Y~'���C H�Q�(�RV)TUW��v�}��cό�9�;g�xvv�;s�...

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 function in the MVC model, tries to generate graphs in a loop with an HTML table using pChar...

pchart pie chart legend and graph not correlating

Hi, 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 colour coding is knocked off. ie Item 1, has a value of zero, its passed over in the ch...

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 (strong,medium,low) instead of the inappropriate numbers (2,1,0). (I have search a lot without success, th...

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 possible? In the official documentation only appears a function that give format to the li...

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

Hi, 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 final: $Test->Render("example1.png"); by $Test->Stroke(); But When I do this, I get:" The image cannot be displayed because...

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 the above 1 50% Interesting 0 0% Intelligent 0 0% Cool 0 0% Incredib...

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 verified that GD was supported. I am running with php5. Any thoughts on why the graph ...

Clickable Elements in pchart?

I've been looking for a good open-source tool for creating graphs in PHP, and pChart is looking like a great candidate. One need I have is to be able to click on certain elements of the graph, like a category label or an individual bar, to drill-down into the data, and display new data and new graphs on a new page. Is this something th...

How to add tooltips to pchart php library?

Does someone knows an addon or tutorial to add tooltips to pChart classes? ...