2004-10-24 18:40 migueldb * phplot.php: + array_merge_php4(): added to cope with the bug introduced by the change in array_merge() from PHP4 to PHP5 (I haven't verified this) + Fixed some divisions by zero, thanks to an old bug report. 2004-10-24 17:44 migueldb * README.txt, doc/quickstart.html, examples/create_chart.php, examples/format_chart.php, examples/inline_image.php: + Updated to the latest changes in phplot 2004-10-24 17:40 migueldb * doc/index.php: + Minimal change 2004-09-09 20:27 migueldb * phplot.php: + SetPointSize(): deprecated + SetPointSizes(): added as replacement for SetPointSize().Now able to set point sizes on a per line basis. + SetPointShape(): deprecated. + SetPointShapes(): added as replacement for SetPointShape(). Now able to set point shape on a per line basis. + DrawDot(): now needs record number to decide which dot shape and size to draw. + CalcMargins(): dirty fix for x data label placing. + tile_img(): fixed tile placement. 2004-06-14 14:19 migueldb * phplot.php: + SetXTickLabelPos() and others: more on the bug reported by Jo Demol. 2004-06-14 11:35 migueldb * phplot.php: + Fixed bug reported by Jo Demol. 2004-05-11 14:14 migueldb * phplot.php: + SetBgImage(): added. + SetPlotAreaBgImage(): added. + SetInputFile(): deprecated. + DrawBackground(): now accepts images as backgrounds. + DrawPlotAreaBackground(): now accepts images as backgrounds. + tile_img(): internal method added. 2004-04-14 13:26 migueldb * phplot.php: + DrawXAxis(): No more horizontal tick nor label at X-axis' sides. 2004-03-21 18:01 migueldb * phplot.php: + x/y_label_type automaticaally set to 'data' when setting label precision. + minor corrections. 2004-03-03 08:17 afan * phplot.php: PlotAreaWorld - last fix 2004-03-03 02:40 migueldb * phplot.php: + SetPlotAreaWorld(): fixed. 2004-03-01 21:14 afan * phplot.php: Needed one more = in ($ymin === NULL) 2004-02-29 11:21 afan * phplot.php: phplot.php SetPlotAreaWorld - changed ($!ymin) to ($ymin == NULL) for cases where $ymin = 0. (also done for ymax, xmin, xmax) afan 2004-02-23 10:34 migueldb * phplot.php: + SetPlotAreaWorld(): Fixed the calculation of max and min y. 2004-02-14 12:29 migueldb * phplot.php: + SetPlotAreaWorld(): Fine grained control over which values are auto-calculated. Should fix some trouble with y-scaling. + DrawGraph(): yet another fix to drawing order... + CheckOption(): fixes problems with mixedcase arguments. + SetFileFormat(), FormatLabel(): typos fixed. 2004-01-30 12:56 migueldb * examples/data_sample1.php: + Added "stacked bars" plot type. 2004-01-30 12:50 migueldb * phplot.php: + DrawStackedBars(): added plot type. + SetEqualXCoord(): renamed to more intuitive CalcBarWidths(). Modified for stacked bars. + Changed graphing order. The grids are again at the background, as they should. Added var $grid_at_foreground (bool) to alter this. + text-data-pie renamed to text-data-single. + SetPlotAreaWorld(): fixed min_y bug. 2004-01-29 17:10 migueldb * phplot.php: + SetPlotAreaWorld(): default behaviour is to adjust Y axis to Y min/max. + SetSkipLeftTick(), SetSkipRightTick(): added. + SetFileFormat(): fixed silly bug that prevented selections from being made. 2004-01-28 20:00 migueldb * phplot.php, doc/quickstart.html: + Merged final changes to rel-5-0 into main trunk. 2004-01-28 19:12 migueldb * phplot.php: + DrawGraph(): Fixed graph drawing order for default plots (bars). Removed some redundat lines of code. 2004-01-28 18:58 migueldb * doc/quickstart.html: + More stuff... 2004-01-28 18:49 migueldb * phplot.php: + DrawPieChart(): fixed use of old variable. + First steps for data labels autoadjustement and skipping. 2004-01-27 12:12 migueldb * phplot.php: + Added missing SetSkipTopTick() + Some comments. + Fixed option checking for a couple of functions. Added some more. 2004-01-27 00:03 migueldb * doc/index.php: [no log message] 2004-01-25 20:28 migueldb * doc/index.php: + Fixed typo. 2004-01-25 19:57 migueldb * doc/index.php: + Commit for 5.0rc1. 2004-01-25 19:50 migueldb * README.txt, doc/index.php, doc/quickstart.html, doc/schema.html: + Commit for 5.0rc1. 2004-01-25 19:44 migueldb * phplot.php: + Added missing SetDrawXDataLabelLines() and SetDrawYDataLabelLines(). + Added some parameter checking with CheckOption(). + Added some comments. 2004-01-25 19:32 migueldb * examples/: create_chart.php, example3.php, format_chart.php: + Commiting for 5.0rc1 2004-01-25 18:21 migueldb * examples/example8.php: [no log message] 2004-01-25 18:20 migueldb * doc/style.css: + Added 'box' style. 2004-01-25 17:11 migueldb * phplot.php: + Set*Colors(): should be faster when using default values. + array_pad_array() non class-member function added. + PadArrays(): now pads arrays with themselves, to mimic previous behaviour, uses array_pad_array() + DrawAxisLegend(): skeleton added. To do. 2004-01-24 23:18 migueldb * phplot_data.php: + DoMovingAverage(): some corrections. The legend isn't correctly updated yet. 2004-01-24 23:16 migueldb * phplot.php: + PadArrays(): added. Formerly in SetDataValues(), now called from DrawGraph(). Fixes SetLineWidths() buggy behaviour. + Added MINY and MAXY constants, for DrawXDataLine(). + DrawGraph(): changed order when drawing axis, to avoid overwriting. 2004-01-21 20:08 migueldb * doc/quickstart.html: + More corrections + Some links + $Id$ tag 2004-01-21 19:55 migueldb * doc/quickstart.html: + HTML heavily cleaned + Some corrections 2004-01-21 18:47 migueldb * doc/index.php: + Added quickstart. + More things in whishlist. 2004-01-21 18:46 migueldb * doc/quickstart.html: + Doc by Afan. With slight corrections. 2004-01-21 18:44 migueldb * examples/rgb.inc.php, doc/index.html: [no log message] 2004-01-21 18:43 migueldb * phplot.php: + Small changes to functions' documentation. 2004-01-21 18:06 migueldb * phplot_data.php: + renamed tedious data_values to data + work still in progress 2004-01-21 18:03 migueldb * phplot.php: + Added check for __FUNCTION__ for old PHP versions. + DrawPieChart(): 'data-data' support added. + DrawGraph(): added check to avoid calling FindDataLimits() twice. + DrawXDataLine(): Added. + DrawXDataLabels(): Added support for vertical lines to data points via DrawXDataLine() + FindDataLimits(): Added calculation of per-row min_y and max_y, for DrawDataLine() 2003-12-30 13:26 migueldb * phplot.php: + SetDataValues(). Now reads a reference and copies it to $this->data, a numeric array. All indices are converted to numeric. num_recs[] holds the number of records per data row. + FindDataLimits(). Works with new $this->data + The following functions now work with the new data set and use faster loops: + DrawDots() + DrawDotsError() + DrawThinBarLines() + DrawPieChart(). Minimum changes. + DrawLines() + DrawArea(). Other optimizations too. + DrawBars(). Other things too. 2003-12-30 00:01 migueldb * phplot_data.php: + Fixed constructor. Added parameters to fit PHPlot()'s + Fixed many "undefined index" errors. + DoMovingAverage(): puts data in a new row, and sets colors and legend. Won't work for the moment. 2003-12-29 21:58 migueldb * phplot_data.php: + Formatted after phplot.php style (PEAR) + Added Doxygen comments. + DoScaleData(): Optimized with for loops. Needs testing. + DoMovingAverage(): Optimized. Changed behaviour with first elements in dataset. Needs testing. + DoExponentialMovingAverage(): added. Needs testing. 2003-12-27 14:53 migueldb * benjamingothic.ttf: + The TTFont is only needed in 'examples/'. 2003-12-27 14:52 migueldb * phplot.php: + Removed some (done) TODO marks. 2003-12-27 14:06 migueldb * examples/test_setup.php: [no log message] 2003-12-27 14:06 migueldb * examples/nav.html: + This was unnecessary. 2003-12-27 14:01 migueldb * README.txt, LICENSE.GPL, LICENSE.PHP_3_0: [no log message] 2003-12-27 13:46 migueldb * doc/index.php: + Added all the examples. + Added 5.0 version number. + Added myself as author. 2003-12-27 13:44 migueldb * examples/example9.php: + Changed to follow phplot function renaming (again!) 2003-12-24 13:39 migueldb * examples/: create_chart.php, format_chart.php: + New data type: randfunction, using data-data-error. 2003-12-24 13:38 migueldb * examples/: data_sample1.php, data_sample2.php, data_sample3.php, data_sample4.php: + Moved data type selection links to format_chart.php 2003-12-24 13:36 migueldb * phplot.php: + Fixed spurious ticks bug. + Corrected some comments. 2003-12-24 12:52 migueldb * examples/example5.php: + Now in format_chart.php 2003-12-24 12:47 migueldb * examples/example4.php: Ooops! I deleted the wrong file! 2003-12-24 12:39 migueldb * examples/data_sample5.php: + New 'randfunction' data type in example-o-matic. Taken from deleted example4.php and test1.php. 2003-12-24 12:37 migueldb * examples/example4.php: + Inserted example in example-o-matic as 'randfunction' 2003-12-24 12:35 migueldb * examples/test1.php: inserted example in example-o-matic as 'randfunction' 2003-12-24 10:38 migueldb * phplot.php: + Fixed silly typo. 2003-12-23 17:40 migueldb * phplot.php: + All renaming with leading underscores undone for compatibility. It was a mess. + Fixed a couple function call typos. + Fixed axis position calculation. 2003-12-17 16:28 migueldb * examples/create_chart.php: + Fixed to work with phplot.php v1.69 2003-12-17 16:28 migueldb * phplot.php: + Added skip_left_tick and skip_right tick for x axis. + Added y_label_angle (last commit) + Fixed automatic axis positioning for plots with negative values or log scales. + Deleted messy SetGridParams(), SetTickParams() and SetDataLabelParams(). I realized they were a bad idea of mine... :( + Some more code grouping and reorganisation. 2003-12-15 16:52 migueldb * examples/: create_chart.php, format_chart.php: + Added x/y tick crossing lenghts. + Added x axis and y axis positioning. + Corrected some label placement options. 2003-12-15 16:50 migueldb * examples/: example4.php, example5.php, example9.php, test1.php: + Updated examples to work with new PHPlot. + Fixed some things. 2003-12-15 16:48 migueldb * phplot.php: + x_tick_pos: added support for 'xaxis' position. + x_tick_label_pos: added support for 'xaxis' position. + DrawYTick(): fixed 'yaxis' + Set[X|Y]TickCrossing(): added. Draw ticks crossing axis by a specified length in pixels. + DrawText(): improved vertical centering for TTF. + SetDrawBrokenLines(): fixed silly thing. + _DrawPlotBorder(): new option 'right' and 'sides' + DrawLinesError(): removed some 'ifs' for speed. + DrawDotsError(): removed some 'ifs' for speed. + Minor corrections here and there. 2003-12-13 04:58 migueldb * phplot.php: + DrawGraph(): Fixed drawing order error. 2003-12-13 04:44 migueldb * phplot.php: + _SetIndexColors(): removed. When sessions were not set, indexes were being calculated twice + Centralized color and style defaults in _SetDefaultStyles() (former _SetDefaultColors()) + SetLineWidth(): superseded by new SetLineWidths(). Now using an array of values for per-line setting. + DrawDashedLine(): added again for backward compatibility. + DrawBars(): Faster shading. + DrawYTicks(): slightly improved, DrawYTick() modified too. + DrawGraph(): plot borders now drawn after plots. + Added color and style variable declarations for easier modification. + More formatting. Some renaming undone for backwards compatibility. 2003-12-10 04:04 migueldb * examples/: data_sample1.php, data_sample2.php: + New plot type 'squared' added. 2003-12-10 04:03 migueldb * examples/: create_chart.php, format_chart.php: + New option 'Draw broken lines' added. 2003-12-10 04:00 migueldb * phplot.php: + Better available graph room usage. + More renaming and formatting... + Parameter validation with _CheckOption(), but I might drop it if it slows everything down. + DrawBinary() is again DrawSquared()... ooops. :) It is at least now working. + DrawSquared() done, quite silly thing, though. + SetBrokenLines() added. Tells whether to draw lines for missing Y data. 2003-12-10 01:32 migueldb * doc/schema.html: + Simple [go to index] link. + Typos fixed. 2003-12-10 00:56 migueldb * phplot.php: + Reworking PEAR coding standards conformance, I had quite screwed it up. Vim regexes are proving veeeery useful ;) + Important comment about the destructor and class instantiation. + Internal methods will now have a prepended underscore. I'm renaming them little by little. + SetDefaultDashedStyle(): now accepts any string as style. + DrawSquared() renamed to DrawBinary() + _CalcMargins(): corrected [x|y]_tick_label_width calculation. 2003-12-07 18:58 migueldb * examples/: example6.php, example7.php: + SetDrawXDataLabels(false); 2003-12-07 18:30 migueldb * phplot.php: + DrawDotsError(): doesn't fail anymore if data type isn't data-data-error (might include text-data-error in the future). + More variables changed to bool. + SetNewPlotAreaPixels(): removed, SetPlotAreaPixels() now does the same work. + SetMarginsPixels(): now updates margin variables. + SetTitle(): fixed wrong height calc for empty title. + Removed many internal variable declarations. See the beggining of the class declaration for comments on this. This might be a bit stupid... :-? + DrawSquared(): plot type on the works, addressing Feature Request [558302]. Just the skeleton for now. 2003-12-07 02:12 migueldb * phplot.php: + SetInputFile(): deallocates previously allocated 'img' + Added 'line_spacing' and SetLineSpacing() + InitImage(): deleted, moved into the constructor + DrawError(): shows plain text message if 'img' unavailable. + SetXTitle(): Fixed x_title_height calculation for TTF. + More code reorganisation. As I seem to be alone in this, that should be no problem... 2003-12-07 01:12 migueldb * phplot.php: + TTF font provided with package now works (it wasn't being found). + TTF placement a bit adjusted. + SetTitle(): Fixed wrong title height calculation for TTFonts. + DrawLegend(): TTF support added. + DrawDot(): renamed dot type 'crosshair' to 'plus'. Added 'cross' and 'trianglemid'. + FormatTickLabel(): now used for tick and data labels. Renamed to FormatLabel(). + draw_x_data_label: variable removed, now using [x/y]_data_label_pos for both x and y data labels. + draw_x_data_label_lines: parameter added. + line_width: minor usage fixes. + SetXDataLabelAngle() renamed to SetXLabelAngle(). Old function kept in 'deprecated' section. + Changed some options to bool format. + Tried to make better decisions on Set*LabelParams() regarding placement. + Removed superfluous DrawLabels() function. + Moved CalcXHeights() and CalcYWidths() into CalcMargins() for speed (unperceptible I must admit) and clarity. + Other changes here and there... 2003-12-07 01:06 migueldb * examples/data_sample2.php: + Added missing data. 2003-12-07 01:05 migueldb * examples/: create_chart.php, data_sample1.php: [no log message] 2003-12-07 01:04 migueldb * examples/format_chart.php: + Added a check to see if we are being called from the right place. + New data label angle option. + New line and error bar line width options. + New data label options. + New point types. + Some corrections. 2003-12-06 21:12 migueldb * examples/nav.html: [no log message] 2003-12-06 21:09 migueldb * examples/test_setup.php: + Added nav. bar 2003-12-06 21:08 migueldb * examples/nav.html: + Simple navigation bar, not very useful yet. 2003-12-06 20:43 migueldb * doc/style.css: + New "nav" class. 2003-12-06 20:42 migueldb * doc/index.php: + New index, now calls some php. 2003-12-06 20:41 migueldb * doc/php_test.php: + Added the test for php functionality in index.php, so this file is no longer necessary. 2003-12-05 19:13 migueldb * examples/inline_image.php: + Added warning message when called on its own. 2003-11-28 01:21 migueldb * phplot.php: + Default title position='none' for better positioning of elements. + xtr(), yrt(): return value round()ed + DrawLines(): better (?) management of incomplete data sets. No begin or end points forced. No more "undefined offset x in ..." + DrawArea(): more modifications when working with incomplete data sets. No extra beginning or ending points. 2003-11-26 17:52 migueldb * phplot.php: [no log message] 2003-11-26 17:16 migueldb * examples/: create_chart.php, format_chart.php: + Added shading option 2003-11-26 16:43 migueldb * phplot.php: + Added spaces after every comma, around every equal sign for prettier code. :) + DrawXTitle(): Another fix. Removed the check for tick_pos I just introduced. Works better now. + _PHPlot(): destructor added. + Comments, indenting, and a couple of minor corrections here and there. 2003-11-26 12:19 migueldb * phplot.php: l + DrawXTitle(): check for tick_label_pos when calculating title position (before the title would be misplaced under certain circumstances) + Added SetIndexDarkColor() and $ndx_data_dark_color[] calculated from $data_colors[], for shadows. + New data type (one value per data row) 'text-data-once' for pie charts + DrawPieChart(): some optimisations. Shading added. 2003-11-25 17:30 migueldb * examples/create_chart.php: + Now accepts point size from format_chart.php. 2003-11-25 17:29 migueldb * examples/format_chart.php: + New point type 'crosshair' added to the options. + Link to the documentation index at the bottom of the page. 2003-11-25 17:28 migueldb * examples/data_sample1.php: + Fixed wrong comment. 2003-11-25 17:28 migueldb * phplot.php: + DrawDot(): added new variables to avoid calls to ytr() and xtr(), replaced imagefilledrectangle() with imageline() in "halfline" and "line" modes. + DrawDot(): added point type 'crosshair' + DrawArea(): modified to follow the structure of the other plot drawing methods. Removed obsolete DrawAreaSeries() + DrawLines(): same modifications as with other plot drawing methods. + Removed dummy DrawLineSeries() + More use of imagesetthickness() 2003-11-25 01:34 migueldb * phplot.php: Right now working on richer data label placement, but in the meantime: + Removed unnecessary (and wrong) right alignment option in FormatTickLabel() + Removed unused (thought it better :) DrawPlotLabel + DrawYErrorBar(): uses imagesetthickness() + DrawDots() optimised and cleaned. + DrawThinBarLines() optimised and cleaned. + DrawDotsError() optimised (I hope!) + DrawLinesError() optimised. Fixed a bug with multiple lines + Other small things, as usual... 2003-11-25 01:27 migueldb * examples/data_sample2.php: + Removed bogus