📄 changelog
字号:
Version: $Id: Changelog,v 1.5 2004/06/01 10:38:37 lkneschke Exp $
Changelog for JpGraph
=====================
[29-Feb-2002] JpGraph 1.5.2
===========================
Bug fixes:
----------
* Released the correct 3D pie file (By mistake I mixed the stable version with
the development branch for 2.0 in the 1.5.1 release just to prove
that I'm still human :-)
* [me] Fixed out of bounds error when using shadows for bar graphs
with 0 value
* [me] Fixed typo in DisplayValue::SetFormat()
* [me] Fixed potential array out of bounds error in Plot::Min() and
Plot::Max()
* [me] Fixed misplaced ')' in string construction in call to
JpGraph error.
Changes/Additions:
------------------
* [me] Added possibility to use "auto" file name when stroking
directly to a file.
* [me] Added tag 'title' to the image maps to make for better
compatibility with Mozilla.
* [me] Moved class LineProprty to jpgraph.php from jpgraph_gantt.php
since it can be used in other modules as well.
* [me]Added Text::GetTextHeight() which differs from
Text::GetFontHeight() in that it takes the total text height
(possible multiple lines) into account.
* [me] Added Image::FilledArc()
* [me] Added RotImage::SetTranslation()
Added RotImage::Circle()
Added RotImage::FilledCircle()
Added RotImage::Arc()
Added RotImage::FilledArc()
[11-Feb-2002] JpGraph 1.5.1
===========================
* [me] No longer treat a not set $y[0] value as an explicit error. Instead
silently set $y[0] to 0.
* [me] Changed "include" to "require" in jpgraph.php when including
jpgraph_dir.php. This seems to fix the strange problem whereby
the constants defined in jpgraph_dir.php didn't have a correct
value in jpgraph.php.
* [me] Fixed problem with correctly drawing of bars when all bars
are negative. (Previously the baseline wasn't correctly handled
since min/max values needs to be mirrored for negative bars)
Note: Funny this problem has gone unnoticed so long.
* [me] Fixed problem with doing gradient fill for negative bars.
* [me] Fixed problem with autoscaling when there is a very small
difference (< 0.00001) between min and max and when both min and max are
negative. This might happen if you have a single negative value.
* [me] Added labels for line graph. Each point my now also optionally
display it's value on a line graph. Value are controlled trough
class DisplayValue and it's instance in LinePlot.
LinePlot->value->Show(),
LinePlot->value->SetColor(),
LinePlot->value->SetFont(),
LinePlot->value->SetMargin(),
LinePlot->value->SetFormat(),
[27-Jan-2002] JpGraph 1.5
=========================
* [me] Fixed misnamed xmin variable in Min() for acc bars
* [me] Added possibility to specify paragraph alignment for
multi line text, i.e the text can be left,right or center aligned
within it's bounded box. The lignment is set by the new method
Text::ParagraphAlign()
* [me] Changed position specification for text so that if the position
is specified in range [0,1] it is interpreted as fraction of image
height width and otherwise as absolute pixels.
* [me] Added possibility to specify pie size (radius) both as a fraction and
absolute size in pixels.
* [me] Added possibility to tweak color specification by adding a
saturation percentage, i.e you can specify color as "red:0.65"
which means 65% of the red value (in other words 35% darker).
* [me] Tweaked the estimation of number of segments to approximate an
arc in Image::CakeSlice.
[17-Jan-2002] JpGraph 1.5beta2a
===============================
* [me] Fixed typo in Max() calculation for accumulated bar graphs
which caused it to return wrong value.
* [me] For Min() calculation for acc bars graphs take the user
specified ymin into account.
* [Peter Svistunov, me] Added Cyrillic unicode support through the
global define LANGUAGE_CYRILLIC. This is also the start of a
generic support for Unicode languages through the LanguageConv
class.
[15-Jan-2002] JpGraph 1.5beta2
==============================
* [me] Rewrite of the pie-chart drawing algorithm. This version
is slightly slower but avoids using GD floodfill function. This
fixes problems with small slices not being filled completely. As
an added bonus it is now possible to explode (and specify the
explode radius) for all slices. It is also possible to draw the
pie without having internal borders between the slices as well
as turning on/off the border surronding the pie.
* [me] Added graphic primitive CakeSlice() to the Image class.
Used to simplify pie-drawing.
* [me] Added more generic error handling. It is now possible to
install your own error object with
JpGraphError::Install(<name of error object>)
The default error handler will just abort execution.
* [me] Security whole in utility script for displaying source
and image in frames fixed.
* [Cedric Scheyder] Actively ignore hours in calculating Max/Min
values for dates in Gantt charts to avoid problems in autoscaling
when users specify start and end dates down to hours.
* [Rick Widmer] Fixed problem in calculating min/max value when first
Y-value was non-numeric.
* [me] Fixed calculation of width and height of text with multiple lines.
Multiple text lines (text blocks) should now be almost fully supported.
[16-Dec-2001] JpGraph 1.5-BETA
==============================
* Take "\n" into (some) account when calculating string height and width
Text output now supports multiple lines better.
* [me] Removed reference to global PHP_SELF, use HTTP_SERVER_VARS array
instead. This makes JpGraph working with 'register_globals' turned
off.
* [me] Added some rudimentary check that GD is enabled before trying to
run JpGraph.
* [me] Fixed silly cut-and-paste bug in AccBarPlot::Max() which could
cause to small max values to be returned
* [me] Added property 'title' to PlotMark. The title is printed in the center
of the plotmark.
* [DanNY (dulcis28@hotmail.com)] Added JpGraph Logo. (Thanks!)
* [me] Added jplintphp.php, jpgendoc.php, jplintdriver.php which are
parsing, documentation and pretty printing tools I use to help
me to documentation and find unused code.
Tthat does some simple static analysis on PHP for silly mistakes
that I do (Like using instance variables without qualifying them
with "$this->" ) The tool also warns about unused instance variables.
Since it also parses the classes and methods I use it to generate
the documentation skeleton for the reference section.
* [me] Added Gantt chart funcionality, jpgraph_gantt.php . See
Gantt tutorial for help on usage.
* [me] Added new Gantt tutorial
* [me] Added BKIMG_CENTER, possibility to center the background image.
* [me] Timeout function now also aplies when you generate an image
off-line, i.e if the imagefile exist and is within the time window
now file will be written.
* [Rasmus Lerdorf] Added patch to make background images work with GD 2.x
N.B GD 2.01 has bugs in handling TTF font with truecolor images which
are fixed in 2.02 but that has (of this writing) still not been officially
released. GD 2.x support in JpGraph is still to be considered experimental.
* [me] Fixed some potential rounding errors in 2D Pie plot which in some
circumstances might have caused a flood fill to escape. Also added check
to better handle very small slices so we don't try to do a fill
on the border edge.
* [me] Slightly changed the internal design for band patterns.
They are now created by a factory class instead. This makes it much easier
to re-use and have maximum code reuse.
* [me] Factored out some functionlity from Graph::Stroke() to make it possible
to re-use some code in GanttGraph::Stroke()
* [me] One more instance when PHP surprised me by thinking 0 == "-" aarrghhh
Now I think (knock on wood) all problems with data points=0 should be solved
* [me] Added '&' to the assignment in Graph::Add() This now lets you specify changes
for lines, plots even after they been added to a Graph. But I'm not sure if this
is really such a good ide because you will have problem if you write code
like
for( .... ) {
$myplot = new LinePlot(.....);
$graph->Add($myplot);
}
Since this will not work the way you think (why?) Because the same
reference to the variable $myplot will be used for all additions and
hence the graph will only have multiple instances of the last added
LinePlot(). Have to think of this and what is the best way. (I will
probably never get used to PHP references....)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -