Skip to content
Extraits de code Groupes Projets
Valider 2ca2f04c rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

update pchart library from 2.1.3 to 2.1.4 and moved them to a new folder

parent 2ce341d3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -7,6 +7,8 @@ This is a changelog for Piwik platform developers. All changes for our HTTP API' ...@@ -7,6 +7,8 @@ This is a changelog for Piwik platform developers. All changes for our HTTP API'
### Breaking Changes ### Breaking Changes
* The `UserSettings` API has been removed. The API was deprecated in earlier versions. Use `DevicesDetection`, `Resolution` and `DevicePlugins` API instead. * The `UserSettings` API has been removed. The API was deprecated in earlier versions. Use `DevicesDetection`, `Resolution` and `DevicePlugins` API instead.
### Library updates
* Updated pChart library from 2.1.3 to 2.1.4. The files were moved from the directory `libs/pChart2.1.3` to `libs/pChart`
## Piwik 2.13.0 ## Piwik 2.13.0
......
Ce diff est replié.
Le fichier a été supprimé par une entrée .gitattributes, ou son encodage n'est pas pris en charge.
Ce diff est replié.
Ce diff est replié.
Ce diff est replié.
Ce diff est replié.
Le fichier a été supprimé par une entrée .gitattributes, ou son encodage n'est pas pris en charge.
???????????????????????????????????????????
? ?
? pChart - a PHP Charting library ?
? ?
? Version : 2.1.3 ?
? Made by : Jean-Damien POGOLOTTI ?
? Last Update : 09/09/11 ?
? ?
???????????????????????????????????????????
2.1.3 ????????????????????????????????????????????????????????????????????????
o Updated drawPlotChart() to size the plot based on the serie weight.
o Added the drawXThreshold() function.
o Added the drawXThresholdArea() function.
o Added the AreaName param. to drawXThresholdArea() and drawThresholdArea().
o Various visual enhancements.
o Fixed a bug in the drawPlotChart() function.
o Added shadow support for the Area charts.
o Added the BorderWidth parameter to the drawBubbleChart() function.
o Added the Shape parameter to the drawBubbleChart() function.
o Added the AXIS_FORMAT_CUSTOM for user callback handling.
o Rewritten the drawStackedAreaChart() function.
o Added support for labels on stacked charts.
o Added the createFunctionSerie() function to the pData class.
o Added the drawScatterThreshold() function to the pScatter class.
o Added the drawScatterThresholdArea() function to the pScatter class.
o Added the setAbsicssaPosition() function to the pData class.
o Added the NegateValues() function to the pData class.
o Added the NoMargin parameter to the drawThresholdArea & drawThreshold fcts.
o Added the drawAreaMirror() function.
o Added the EURO_SYMBOL constant.
o Added the replaceImageMapValues() function.
o Added the replaceImageMapTitle() function.
o Thresholds functions can now accept an array of points.
o Added the FixedMax parameter to both the Radar and Polar charts.
o Added the Precision parameter to the pie and ring charts.
o Added the DisplayOrientation parameter to the bar & stacked bar charts.
o Fixed a bug while using the drawBestFit function with VOID datasets.
o Added the RemoveXAxis option to the drawScale() function.
2.1.2 ????????????????????????????????????????????????????????????????????????
o Added zone threshold support for filled area charts.
o Added zone threshold support for filled spline charts.
o Added the setScatterSerieShape() function.
o Added the getSerieMedian() function.
o Added the drawZoneChart() function.
o Added the getStandardDeviation() function.
o Added the getCoefficientOfVariation() function.
o Added the getGeometricMean() function.
o Added the getHarmonicMean() function.
o Introduced support for imageMap.
o Added the initialiseImageMap() function.
o Added the addToImageMap() function.
o Added the dumpImageMap() function.
o Added value writting supports to the radars & polars charts.
o Added the option to add an inner border to the reg. and stacked bar charts.
o Added the SERIE_SHAPE_DIAMOND and SERIE_SHAPE_FILLEDDIAMOND series shapes.
o Fixed a visual bug in the drawAreaChart function. (thks to dmiller)
o Added the BrowserExpire param to the stroke() function (thks to marquonis)
o Fixed a visual bug in the drawBarChart function when the Interleave is 0.
o Corrected a bug in the drawScatterBestFit() function (thks to ares)
o Fixed some bugs with the pie chart functions.
2.1.1 ????????????????????????????????????????????????????????????????????????
o Created the pIndicator class.
o Created the pSurface class.
o Added the drawLabel() function.
o Added the writeScatterLabel() function.
o Added the writeBubbleLabel() function.
o Added the ForceAlpha parameter to the buble chart.
o Added the LabelStacked parameter to the 2D and 3D pie charts.
o Added 2D ring chart support to the pPie class extension.
o Added 3D ring chart support to the pPie class extension.
o Added the autoOutput() method to the pCache class.
o Added some NULL value tests.
o Added the setSerieShape() function to the pData class.
o Added the setAbscissaName() function to the pData class.
o Fixed a bug in the getAverage() function.
o Changed the VOID constant from 0.12345 to 0.123456789.
o Fixed a bug with the number of decimals in the METRIC scale.
o Fixed a visual bug with reversed bar chart labelling.
o Added the ValuePosition & ValuePadding parameters to the pie charts.
o Added the WriteValue parameters to the 2D pie charts.
o Added the getSeriePalette() function to the pData class.
o pData methods can now accept array of serie parameters.
o Fixed a bug in the scatter spline chart VOID values handling.
2.1.0 ????????????????????????????????????????????????????????????????????????
/!\ Renamed the .class files to .class.php.
o Create the pScatter class.
o Added the ScatterPlotChart() charting method.
o Added the ScatterLineChart() charting method.
o Added the ScatterSplineChart() charting method.
o Added the DrawScatterLegend() function.
o Added the getScatterLegendSize() function.
o Added the following function to the pData class :
- setScatterSerie()
- setScatterSerieDescription()
- setScatterSeriePicture()
- setScatterSerieDrawable()
- setScatterSerieTicks()
- setScatterSerieWeight()
- setScatterSerieColor()
o Added a Forces config. array to drawSpline() function to allow parametric
forces. (used by the scatter spline algorithm)
o Added Floating0Serie & Floating0Value options to the drawBarChart function.
o Added the Draw0Line option to the drawBarChart function.
o Added support for line and filled step charts.
o Fixed a visual artifact in the drawGradient() function.
o Fixed a visual artifact in the drawRoundedFilledRectangle() function.
o Fixed a visual artifact in the drawRadar() function.
o Rewritten the example index page.
o Added the Floating parameter to the scaling functions.
o Added the drawBestFit() and drawScatterBestFit() math functions.
2.0.13 ???????????????????????????????????????????????????????????????????????
o Modified the drawScale() function to get the best visual factors.
o Added the BorderAlpha parameter to the drawFilledCircle() function.
o Shipped more examples.
o Fixed a bug in the normalize() function and 0 Values.
o Finally implemented the setSeriePicture() output.
o Added the bubble class extension.
o Added the possibility to have a transparent background to the generated
pictures keeping the alpha channels (thanks to georgi.m)
o Updated the sandbox to support transparent background.
o Added the drawDerivative() function to draw curve slope factor.
o Additional Minor fixes.
2.0.12 ???????????????????????????????????????????????????????????????????????
o Added missing points (VOID) handling for line & spline charts.
o Added customisation options to the drawLegend() function.
o Various additions and enhancements in the sandbox.
o Added the weight series support to the drawSplineChart() function.
o Added the SCALE_MODE_MANUAL scaling method.
2.0.11 ???????????????????????????????????????????????????????????????????????
o Added the AxisBoxRounded, AxisFontName, AxisFontSize parameters to the
radar and polar class.
o Fixed a bug with the axis labels of the radar charts using the STAR layout.
o Fixed a bug in the axis format computing.
o Added the axis format option in the sandbox system.
o Tuned the way the METRIC scales are displayed.
o Fixed a bug with the getWidth(), getHeight().(thanks to SandmanXC)
2.0.10 ???????????????????????????????????????????????????????????????????????
/!\ First public release.
o Fixed a bug in the normalize() function for VOID values.
o Updated the example rendering frontend.
o Updated the sandbox.
2.0.9 ????????????????????????????????????????????????????????????????????????
o Added the sandbox.
o Added the getLegendSize() function.
o Added the SCALE_MODE_ADDALL_START0 scaling method.
o Fixed a bug in the normalize() function.
o Fixed a bug in the computeScale() function.
2.0.8 ????????????????????????????????????????????????????????????????????????
o Corrected a bug in the drawThreshold() function. (thanks to mice32alpha)
o Added rendering options to the writeBounds() function.
o Enhanced the rendering of the drawRoundedFilledRectangle() function.
o Added the setSerieWeight() function to the pData class.
o Fixed a bug in the loadPalette() function.
o Added the 9 palette files. (/palettes)
o Fixed visual artifact in the drawGradientArea() function.
2.0.7 ????????????????????????????????????????????????????????????????????????
o Fixed a cosmetic issue in the stacked area chart function.
o Bar chart with 0 values now appears as a 0 line.
o Zero values are not rendered anymore in stacked bar charts.
o Added the possibility to rotate X axis labels. (LabelRotation)
o Added rendering parameters for skipped X axis values :
$SkippedAxisTicks
$SkippedAxisR
$SkippedAxisG
$SkippedAxisB
$SkippedAxisAlpha
$SkippedTickR
$SkippedTickG
$SkippedTickB
$SkippedTickAlpha
$SkippedInnerTickWidth
$SkippedOuterTickWidth
o Added the ability to draw a background box around text (flat, rounded)
o Added the importFromCSV() method to the pData class.
o Fixed a bug in the min/max computing of the data series with VOID values.
2.0.6 ????????????????????????????????????????????????????????????????????????
o Added setSliceColor() function to the pPie class.
o Added support for stacked area charts.
o Fixed an issue with 3D pie chart labelling.
o Fixed artifacts issues with the 3D pie hidden faces.
o Fixed a bug in the drawPolygon() function.
o Fixed a bug with automatic abscissa labelling.
o Rewritten the delayedLoaded script. (advice of mathbr for compatibility)
2.0.5 ????????????????????????????????????????????????????????????????????????
o Added support for 3D pie charts.
o Enhanced the example rendering. (web)
o Added functionalities on radar charts (proposed by dani Huber)
- SkipLabels to skip any number of labels.
- LabelMiddle to center the labels between the slices.
o Fixed a bug with the palette management.
o Fixed an issue while displaying multiple-line legends.
o Added the delayed loader script in the examples.
2.0.4 ????????????????????????????????????????????????????????????????????????
o Fixed issue with really small data series. (one value)
o Enhanced the example rendering. (batch + web)
o Added the autoOutput() rendering method.
o Made various minor fixes.
2.0.3 ????????????????????????????????????????????????????????????????????????
o Added the autoOutput() function that determine if the picture should be
rendered with the Render() or Stroke() function based on the way the script
is called. (CLI or HTTPD)
o Added the getSum() function to the pData class.
o Added support for 2D pie charts :
- draw2DPie()
- drawPieLegend()
o Fixed angle issue in the drawArrowLabel function.
o While turning AA off, dashed line were not rendered (thanks to mice32alpha)
2.0.2 ????????????????????????????????????????????????????????????????????????
o Fixing some notifications messages with the PHP5.3.x deprecated functions :
- split has been replaced by preg_split.
- ereg has been replaced by preg_match.
o Removed deprecated test with the in_array() function.
2.0.1 ????????????????????????????????????????????????????????????????????????
o First public early adopter release.
2.0.0 ????????????????????????????????????????????????????????????????????????
o Initial release of the v2.0.0 trunk. All primitive functions and some of
the charting functions have been created.
??????????????????????????????????????????????????????????????????????????????
? ?
? pChart - a PHP Charting library ?
? ?
? Version : 2.1.3 ?
? Made by : Jean-Damien POGOLOTTI ?
? Last Update : 09/09/2011 ?
? ?
??????????????????????????????????????????????????????????????????????????????
? WHAT CAN pCHART DO FOR YOU? ????????????????????????????????????????????????
pChart is a PHP framework that will help you to create anti-aliased charts or
pictures directly from your web server. You can then display the result in
the client browser, sent it by mail or insert it into PDFs.
This library has now reached an important point in its development cycle
going out of the beta step. pChart 2.0 is a completly rewritten library based
on what I've learned doing the first version.
? PACKAGE CONTENTS ???????????????????????????????????????????????????????????
?
?
?? /cache This folder is used by the pCache module.
?
?? /class This folder contains the library core classes.
? ?
? ?? pBarcode39.class Class to draw Code 39 barcodes.
? ?? pBarcode128.class Class to draw Code 128 barcodes.
? ?? pBubble.class Class to draw bubble charts.
? ?? pCache.class Class enable chart caching functionalities.
? ?? pData.class Class to manipulate chart data.
? ?? pDraw.class Extended drawing functions.
? ?? pIndicator.class Class to draw indicators.
? ?? pImage.class Core drawing functions.
? ?? pPie.class Class to draw pie charts.
? ?? pSplit.class Class to draw split path charts.
? ?? pSpring.class Class to draw spring charts.
? ?? pScatter.class Class to draw scatter charts.
? ?? pStock.class Class to draw stock charts.
? ?? pSurface.class Class to draw surface charts.
?
?? /data This folder contains extended data.
? ?
? ?? 39.db Code 39 barcodes static database.
? ?? 128.db Code 128 barcodes static database.
?
?? /examples This folder contains some PHP examples.
? ?
? ?? delayedLoader Delayed loader script example.
? ?? imageMap Image map script example.
? ?? sandbox Powerful dev. tool to design your charts.
?
?? /fonts This folder contains a bunch of TTF fonts.
?
?? /palettes Sample palettes files.
?
?? change.log History of all the changes since the 2.0
?? GPLv3.txt GPLv3 official text.
?? readme.txt This file.
? PREREQUiSiTES ??????????????????????????????????????????????????????????????
This library has been written to work with PHP 5+ versions. It will also work
with PHP 4 but the rendering quality maybe downgraded and the rendering speed
seriously impacted.
pChart require the GD and FreeType PHP extensions to be installed on your
web server. This is an important prerequiste that can't be overrided.
? RUNNiNG THE EXAMPLES ???????????????????????????????????????????????????????
pChart is shipped with examples (located in the /examples folder) that you
can either render from a web page using your http and pointing to this folder
or from the command line invoking the php interpreter.
On windows OS, assuming that your PHP binaries are correctly configured in
the PATH environment variable you can also execute the BuildAll.cmd batch
file.
? LiCENSE ????????????????????????????????????????????????????????????????????
The pChart library is released under two different licenses. If your
application is not a commercial one (eg: you make no money by redistributing
it) then the GNU GPLv3 license (General Public License) applies. This license
allows you to freely integrate this library in your applications, modify the
code and redistribute it in bundled packages as long as your application is
also distributed with the GPL license.
The GPLv3 license description can be found in GPLv3.txt.
If your application can't meet the GPL license or is a commercial one (eg:
the library is integrated in a software or an appliance you're selling) then
you'll have to buy a commercial license. With this license you don't need to
make publicly available your application code under the GPL license terms.
Commercial license price are depending of your needs.
Please consult the web page : http://www.pchart.net/license
? EXTERNAL COPYRiGHTS ????????????????????????????????????????????????????????
Famfamfam icons has been made by Mark James, Rounded corners lite has been
coded by Cameron Cooke and Tim Hutchison, Javascript Color Picker has been
written by Honza Odvarko.
The provided font files are licensed under their own terms :
?
?? dvent_light.ttf Copyright Andreas K. inde
?? Bedizen.ttf Copyright Tepid Monkey Fonts
?? calibri.ttf Copyright Microsoft
?? Forgotte.ttf Copyright Ray Larabie
?? GeosansLight.ttf Copyright Manfred Klein
?? MankSans.ttf Copyright Manfred Klein
?? pf_arma_five.ttf Copyright Yusuke Kamiyamane
?? Silkscreen.ttf Copyright Jason Aleksandr Kottke
?? verdana.ttf Copyright Microsoft
? SUPPORT ????????????????????????????????????????????????????????????????????
Since the beginning, pChart is a community driven project. You're missing
feature then ask! We'll try to get it implemented in the future version or
you'll be guided to create a class extension for your own needs.
pChart portal : http://www.pchart.net
Documentation wiki : http://wiki.pchart.net
Support forum : http://wiki.pchart.net/forum
---
(c)2011 Jean-Damien POGOLOTTI - 13k lines of codes
...@@ -16,9 +16,9 @@ use Piwik\Container\StaticContainer; ...@@ -16,9 +16,9 @@ use Piwik\Container\StaticContainer;
use Piwik\Piwik; use Piwik\Piwik;
use Piwik\BaseFactory; use Piwik\BaseFactory;
require_once PIWIK_INCLUDE_PATH . "/libs/pChart2.1.3/class/pDraw.class.php"; require_once PIWIK_INCLUDE_PATH . "/libs/pChart/class/pDraw.class.php";
require_once PIWIK_INCLUDE_PATH . "/libs/pChart2.1.3/class/pImage.class.php"; require_once PIWIK_INCLUDE_PATH . "/libs/pChart/class/pImage.class.php";
require_once PIWIK_INCLUDE_PATH . "/libs/pChart2.1.3/class/pData.class.php"; require_once PIWIK_INCLUDE_PATH . "/libs/pChart/class/pData.class.php";
/** /**
* The StaticGraph abstract class is used as a base class for different types of static graphs. * The StaticGraph abstract class is used as a base class for different types of static graphs.
......
...@@ -12,7 +12,7 @@ namespace Piwik\Plugins\ImageGraph\StaticGraph; ...@@ -12,7 +12,7 @@ namespace Piwik\Plugins\ImageGraph\StaticGraph;
use Piwik\Plugins\ImageGraph\StaticGraph; use Piwik\Plugins\ImageGraph\StaticGraph;
use pPie; use pPie;
require_once PIWIK_INCLUDE_PATH . "/libs/pChart2.1.3/class/pPie.class.php"; require_once PIWIK_INCLUDE_PATH . "/libs/pChart/class/pPie.class.php";
/** /**
* *
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter