Seite weiterempfehlenWenn diese Seite für Sie nützlich war empfehlen Sie diese weiter:
You may rate this script by simply clicking on the appropriate star (5 stars is the best rating).
To run on your web server, you need to ensure that apache has been configured with the GD library. This free library is most of the time integrated in the PHP installation you‘ve already made, only thing to do is to activate it from the php.ini file.
If GD support is not enabled in your PHP installation, you may see the following error message :
PHP Fatal error: Call to undefined function imagecreatetruecolor()
On windows, uncomment the following line :
On linux environment, you‘ll need to recompile PHP with the GD library. (usually with the —enable-gd command line switch).
pChart supports natively anti-aliasing for all basic object : line, curve, box, rounded box, circle, polygons. The anti-aliasing algorithm is an optimised version of the one created for the first version of pChart.
You can enable or disable shadow support, define the color of the shadow, its distance to the object and its transparency factor. Shadows are drawn using the internal anti-alias algorithm.
Alpha transparency is supported by all the primitive drawing functions. It will allow you to create great visual results. Alpha transparency will not slow down the rendering of your picture as it is directly computed by the GD binaries.
Bored of flat charts? pChart can compute natively spline path based on a list of points in a 2D space.
Prior to chart anything, it was mandatory to build a clear and extensive way to store the raw data. This has been achieved through the pData classe that allows you to fully configure your series and axis. Then some mathematical function have been added to allow simple statistical functionalities.
The pData class provides a data description interface allowing you to easily prepare the series you’ll want to chart. You can customize both the series (name, description, unit,... ) and the axis (name, position, scale,...). Hundreds of parameters can be adjusted to get the desired rendering result.
You can attach an unit to each of your data series, define the way they are represented (numeric, time, currency, metric), skip X labels,... Scale configuration is now really flexible and will allow you to provide clear data representation to your users.
This concept was introduced in the first version of pChart. It has now been greatly extended and you create as many Y axis as you want. Data can be splitted between each axis depending of the unit they use.
Adapt the scale of your chart based on the data you want to present. You can now easily select where the abscissa axis will be positioned and reverse your charts changing only one parameter.
Data can be processed internally by the pData class to get the best eye-looking presentation for your users.
You can easily display and customize the slope factor of your data series. Such values can highlight quick values variations.
pChart can compute automatically the line of best fit for your given data points. This feature works on both X-Y and Y charts.
pChart offers various inbuilt function to automatically compute scores from your datasets. It is easy to get the geometric, harmonic mean, the median value or even the coefficient of variation.
You can compute mathematical functions and affect the result to your dataset before charting it.
As pChart was able to both manage high quality drawing primitives and a way to store raw data it was time to write some charting functions. Today people only know this library because of this even if it was not the initial purpose of this library. pChart supports the widely used charting methods like plots, line, curve, bars, radars, polars,...
All standard charts present in the first version of the library are still there. You can create plot, line and curve charts easily and play with all the rendering options to get the best visual result for your applications. All charts will be drawn with the scaling configuration you’ll make first : you can reverse the X and Y axis, tune the scales, ...
Bar & stacked bar charts are also part of the base charting methods. You can use the normalize() function to create 100% stacked charts.
Radars and polars charts have been completely rebuilt from scratch to allow a deep configuration of the rendering. This two charts families now provide a great visual experience allowing you to easily highlight your data.
You can create both 2D and 3D pie chart using the pPie extension. Both families can be deeply customized to allow you an easier integration in you current web application design.
Don’t forget to write your data series legends! pChart can draw it for you in different formats, choose the orientation, colors and layout.
Display multiple data series on the same chart, play with the transparency and the shadow to create nice looking charts.
Stack the areas of your multiple series to hilight value and zones thickness.
You can add thresholds over your charts to highlight specific values. Thresholds are written on a per axis basis.
Represent your stock quotes evolution during time with the stock chart extension.
See more in the documentation..
1. drawStockChart - Draw a stock chart.
Represent your 2D data with the well known bubble chart layout. This kind of charts are generally used when an linked variable is affected to each points.
Draw scatter charts providing X and Y data series using the pScatter class extension. As of today you can use this class to draw plot, line & spline charts.
The pie chart class also allow you to draw both 2D and 3D ring charts.
pChart is introducing new family of data visualisation methods. This chart called indicator arrow can be easily adapted for your needs, just give it a try.
2D surface charts can be used to represent data in 2 dimensional matrix. This kind of charts are used to analyse visually elevation maps or genetic genes distribution.
You can highlight your data variations by using the zone chart functionality allowing you to draw zones between two datasets.
A good library must provide ways to extend it for each users needs. pChart has been created in an object oriented way allowing everybody to create new classes that will inherit all core objects and methods. Today, this interface is used to create barcodes, bubble charts, scatter charts, data networks representations... and many more to come.
Spring charts allows you to represent visually data networks. This networks are composed of nodes and relations. Force-based or force-directed algorithms are a class of algorithms for drawing graphs in an aesthetically pleasing way. Their purpose is to position the nodes of a graph in two dimensional space so that all the edges are of more or less equal length and there are as few crossing edges as possible.
The barcode extension allow you to create code 39 and 128 barcodes. You can then integrate it in online documents like PDFs or pictures.
The internal cache has been completly re-written for an easier management. You can now delete the cached object with a low hit rate or flush the older ones in one call. All data are stored in only two solid files.
The sandbox engine is included in the /examples/ folder of the pChart library. You can use it to quickly design your charts and get the associated code. As of today, there is no other PHP charting library providing such features in their packages.
You can highlight specific plots on your charts using labels. Labels size, color and contents can be easily customized.
It is now possible to create imagemaps for your charts that adds and extra interactive experience with your users
Define thresholds that will be used to use different filling color depending of the plot values.
Our aim is to deliver high quality graphics that you can integrate in your presentations or complex documents