ChartLogix PHP Graphs

ChartLogix PHP Graphs

Released 5 years ago , Last update 5 years ago

Great looking charts, instant set up - Quick and easy classes to produce charts as JPEG or PNG.

Need a chart in your PHP site quickly?

This is a charting library in one self-contained PHP file, which can be placed directly in your htdocs or www directory.

Download contains commented source code for the charting library, plus many examples showing how to customise the colours, effects, axes, fonts.

Also incuded is HTML documentation with full function references.


![ChartLogix PHP Charts][1]


This library already deals with the nitty-gritty details of laying out the graph and the text, rendering the axes, picking the best scale, and rendering gradients and smoothly anti-aliased shapes.

  • Bar graphs, pie charts, and line graphs.
  • Full customisation of layouts, fonts, colour schemes and visual effects.
  • Minimal installation requirements, so you can be up and running in minutes!
  • Included detailed documentation, examples and function reference.

It's simple to create a chart:

  • You make a PHP script which renders a graph and outputs it as an image.
  • Then you can use it's URL as the src for an img tag anywhere in your HTML to display the image.
  • 5 2
  • 4 2
  • 3 0
  • 2 0
  • 1 0
4 Reviews Read Reviews


14 day 14-day money-back guarantee


1 Site

  • Perpetual license

  • 1 site, unlimited servers

  • No distribution (hosted use only)

  • Commercial use

  • 6 months support



  • Perpetual license

  • Unlimited sites, servers

  • No distribution (hosted use only)

  • Commercial use

  • 12 months support


The PHP file mychart.php outputs an image (in this case a pie chart) :

  include( '' ); 

  $pie = new PieChart(); 

  $pie->setTitle( "ChartLogix Pie Chart" ); 

  $pie->addData( 'Bananas', 420, 'FFCC00' ); 
  $pie->addData( 'Apples', 400, '99FF00' ); 
  $pie->addData( 'Strawberries', 210, 'FF6666' ); 
  $pie->addData( 'Grapes', 350, '009900' ); 
  $pie->addData( 'Plums', 100, '9900CC' ); 
  $pie->addData( 'Others', 190, 'AAAAAA' ); 

  $pie->drawPNG( 500, 400 ); 

You can browse to this URL directly to view the image:

Draw pie and bar chart using php

To embed the image into pages, use an img tag:

<img src="mychart.php" width="500" height="400" />

Full documentation and plenty of examples are provided in the download - see the screenshots.


Included in the Download

The library. Relies only on GD. Included are two default TrueType fonts.


Plenty of examples are provided.

  • Chart Types: Bar Graph, Stacked Bars, Line Graph, Pie Chart
  • Customising the axes - colours, fonts and multiple axes
  • Numbers, Dates, Strings on the X Axis
  • Graph title position and style
  • Gradients and effects

Function Reference

Full function reference (in HTML format) is provided as part of the download. This includes the parameters and return values of every public method of these classes:

The code is fully documented with PHPDoc comments.

Full Features

Bar & Line Graphs

These graphs can be overlayed onto the same image. Multiple series of bars on same graph - either stacked or side-by side

  • Automatic y-axis scaling and labeling
  • A variety of shading options
  • Versatile font, layout and sizing options
  • Automatic legend creation

Pie Charts

  • A variety of shading options
  • Versatile font, layout and sizing options
  • Automatic legend creation

Easy to install and use

  • Easy to install - all classes packaged into one PHP script which you can put anywhere on your Web site
  • Easy to use - be creating great looking charts in minutes!
  • No reliance on browser plugins such as Macromedia Flash or ActiveX objects
  • Full online documentation and examples

Flexible customisation

The ChartLogix classes allow you to create charts with minimal * work if you are happy with the default colour scheme and layout, however it is easy to customise the graphics.

  • Customise layout of image
  • Customise colour schemes & fonts
  • Tweak the spacing between the elements of the image if required
  • Interactive Designer to help speed up the process

High quality graphics

ChartLogix relies on the gd2 library (built in to PHP 4+) for drawing images but adds considerably to the quality of gd2's output by implementing it's own high-quality antialiasing and shading.

  • Pixel-perfect antialiasing
  • Gradients & shading
  • Truetype font support
  • PNG/JPEG Output to Web browser or file


3 licenses, starting from From » $24.99 View Licenses

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.

Or enter your name and Email
  • S 2 weeks ago
    do you support read data from a csv or json data ?
  • GM Geoff MacDonald License holderUnlimited
    1 year support
    Purchased on Jul 26, 2017
    8 months ago
    Do you support multiple Y-axes for line graphs? I need to plot two (or more) lines on one graph, with some lines having a range 0-20 and others a range of 0-100, with both ranges appearing as separate vertical axes. As an example, this could be: * X-xis: time of day * Y-axis 1: number of people in canteen * Y-axis 2: number of times coffee vending machine is used
  • D Didiergm 3 years ago
    Hi, I have a fairly specific need for the Line graph (in the sense that no many libraries provide this) - can the point on the line be individually drawn (shape and color ?) - Can I had a background image - or do I need to merge it using e.g. imageMagick ? - Once the perpetual licence ispurchased, how long till I receive the source code and am I free to alter it ? thanks in advance Didier