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
14
votes
2 answers

PChart linear chart image quality

I am using PChart to create linear charts. Everything goes well beside the quality of the actual lines drawn. Of course, antialiasing is not turned off, and even explicitly turned on. Here is an example of the actual image, which looks quite ugly…
Your Common Sense
  • 156,878
  • 40
  • 214
  • 345
5
votes
2 answers

Highchart tick interval

I cannot seem to figure out how to set my tick interval correctly. Need to have an hourly tick on the X axis. The data is minute based. Javascript: $(function () { var chart; $(document).ready(function() { chart = new…
HyperDevil
  • 2,519
  • 9
  • 38
  • 52
4
votes
3 answers

How do I save an image created by pChart to a file?

I am using the following: $chartImage->autoOutput('/statistics/'.$image.'.png'); The problem is that this code outputs the image to the browser. I would prefer it if it saved the image to a file with the directory and name I specified. How do I do…
Jason Axelrod
  • 7,155
  • 10
  • 50
  • 78
4
votes
1 answer

pChart Radar chart with minimum 1

I'm using a Radar Chart similar to this example: https://pchart.net/doc.draw.radar.html My data ranges from score 1 to 4, so I configured some options: $options = array( 'SegmentHeight' => 1, 'Segments' => 3, 'FixedMax' => 4 ); One…
lorenz
  • 4,538
  • 1
  • 27
  • 45
4
votes
2 answers

MySQL: select query, 5 minute increment

I have a weather database which gets datasets about every 70 seconds (depends on when the weather-station delivers the data). I want to graph it using Pchart but i have too many samples so the X axis is screwed up. So i want the data for about every…
HyperDevil
  • 2,519
  • 9
  • 38
  • 52
3
votes
2 answers

Embedding chart on page?

How can I get a pchart in a specific location on my HTML page? right now when I follow the example and use $myPicture->autoOutput(); It just overwrites my entire page and just shows the graph. Looking at the pChart source I found inside…
user391986
  • 29,536
  • 39
  • 126
  • 205
3
votes
1 answer

PHP pChart x-axis Label Angle

Does anyone know how to change the angle of the x-axis labels in pChart? I need to slant them so a longer timeframe can be displayed in a single graph.
Ewan Heming
  • 4,628
  • 2
  • 21
  • 20
3
votes
1 answer

Why can't I assign any variable to a function return value in pChart?

I'm trying to assign a return value from a method to an array and in a second step to place this array into the addPoints() method of pChart. Right now I'm using the following code: $dataUsage = array(); for ($i = 1; $i < 31; $i++) { …
Peter
  • 1,844
  • 2
  • 31
  • 55
3
votes
2 answers

PHPExcel Chart Axis Options set Maximium

I have read this post PHPExcel Chart Axis Options set Minimum and my issue is like this, I want to set the max value (fixed) into the Axis, independently of values graphed. I have read many posts, but I can not to get the answer to my problem. The…
Angel Doza
  • 1,096
  • 1
  • 18
  • 34
3
votes
1 answer

Pchart - Line chart on wrong axis

Im trying to build a combined scatter and line graph. Currently the Scatter plots fine, when i come to adding the lines they're rotated 90 deg to the right, so they are vertical and not horizontal. I can't for the life of me work out why, so if…
tobynew
  • 337
  • 1
  • 3
  • 17
3
votes
1 answer

Select rows with dates and article points (without relation)

Iv got following tables: articles +----+-------------+-----------------------------+--------------+ | ID | ID_group_AG | Title | Date_publish | +----+-------------+-----------------------------+--------------+ | 1 | …
killdaclick
  • 713
  • 1
  • 10
  • 19
3
votes
4 answers

pChart, how to set margin between axis name or axis label?

My graph result like below, I need to space between axis name or axis label, here need some space margin between "month", and x-axis labels and similarly for "clicks" and y-axis labels.
Wiram Rathod
  • 1,895
  • 1
  • 19
  • 41
2
votes
1 answer

pchart error: Message: imageftbbox() [function.imageftbbox]: Invalid font filename

I've tried a number of different ways and right now I'm being as explicit as I can. I'm using xampp on Windows 7 with PHP/pChart. In my code I have:
Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192
2
votes
1 answer

How to place an HTML tag in an object?

I want to render a list from an array of objects in React. The 'answer' key contains the following text... Question: blah, Answer: `List title The biggest benefits of Kin are: 1. 2. 3. 4. ` I would like…
2
votes
4 answers

PChart - Show a fixed number of lablels in X-Axis

How to show only a fixed number of labels in X-Axis ?? I have tried "LabelSkip", but I think it works only with an interval and not with fixed number of labels. Here is a print-screen of my chart:
Bizboss
  • 7,792
  • 27
  • 109
  • 174
1
2 3
9 10