K-charts ChangeLog ================== 2007.06.04 Krzysztof Kozlowski (http://www.kozik.net.pl) Version 1.2.0 * Enhanced logo feature (add support for GIF and JPEG). * Font size can be now specified for each printing of text. * All shit rewritten to PHP coding style (as in PHP itself: http://www.php.net/manual/en/userlandnaming.rules.php) - API completely broken! Detailed changes: * k-charts/classes/LogoImage.php: New file with class "LogoImage" for dealing with logo. It can use PNG, GIF or JPEG images. * k-charts/classes/Chart.php: Private property "logo" is now a "LogoImage" object. Add method "addLogo()", "set_axis/labels/title_font_size()". Add protected properties for size of fonts. * k-charts/k-charts.php: Including "LogoImage.php". * k-charts-/classes/Text.php: Removed methods "set/getFontSize()" and private property "font_size" (added in previous release). Added arguments "font_file_name" and "font_size" to all methods printing text to image. * k-charts/demo/demo6.php: Use different versions of "powered_by_kozik" - PNG, GIF and JPEG images. 2007.05.23 Krzysztof Kozlowski (http://www.kozik.net.pl) Version 1.1.0 * More language updates (to PHP5 Object Model). * Use "Text::getFont...()" methods for retrieving fonts. * Added points and straight line labeling. * Added printing labels on bars (experimental). * Some updates in documentation (make it PHPDocumentor compliant). Detailed changes: * k-charts/classes/Text.php: More language updates (to PHP5 Object Model). Properties "fontCondensed" made private. Added get() methods for retrieving fonts. Added "angle" parameter to "printText()" (default=0). Simplified method "printDiagonal()" - use "printText()" with proper angle. Added method "printVertical()" for printing text vertically (angle=90). Added method "getTextBoundingBox()" returning bounding box of given text. Added private property "fontSize" and get/set methods for it. Made other methods aware of this new property. * k-charts/classes/BarChart.php: Added documentation for new methods from version 1.0 RC1. Added properties and methods for handling position of labels (new public static values: "$LABELS_AT_AXIS", "$LABELS_AT_BARS", public functions: "get/setLabelPlacement()"). Corrected some minor bugs in printing straight line. Added printing labels for straight line. * k-charts/classes/VerticalChart.php: Added support for different position of labels. * k-charts/classes/HorizontalChart.php: Likewise. * k-charts/classes/Point.php: Added new property - label (new argument to constructor; default is NULL so the y coordinate is used). More language updates (to PHP5 Object Model). * k-charts/classes/StraightLine.php: Added new property - label (likewise). * demo/demo6.php: Add two new charts as examples of printing labels on bars. 2007.05.17 Krzysztof Kozlowski (http://www.kozik.net.pl) Version 1.0.0 * Bump to stable 1.0.0 2007.05.16 Krzysztof Kozlowski (http://www.kozik.net.pl) Version 1.0 Release Candidate 1 * Based on libchart 1.1. * Modifications against libchart 1.1: * Upgrade to PHP5 Object Model (broken compatibility with PHP4). * Added files: * k-charts/classes/StraightLine.php * demo/demo6.php * k-charts/images/powered_by_kozik.png * k-charts/classes/BarChart.php: Add support for StraightLine (vertical or horizontal line). * k-charts/k-charts.php: Likewise. * k-charts/classes/Chart.php: Change default logo to powered_by_kozik.png. * k-charts/classes/HorizontalChart.php: Add printing vertical line. * k-charts/classes/VerticalChart.php: Add printing horizontal line.