Professional Documents
Culture Documents
Foxcharts Version Info
Foxcharts Version Info
20 PRODUCTION RELEASE
VERY IMPORTANT
====================================
FOXCHARTS TEAM
====================================
Project manager: Cesar http://weblogs.foxite.com/vfpimaging
Developers:
Cesar Ch
Bo Durban
Jim Nelson
Colaborators - people that have been providing very valuable support and feedback:
Grego Kandirys
Paulo Henrique
Thiago Takehana
Peter Wagner
Luis Maria Guayan
Alex Yudin
Carlos Alloatti
Augusto Minari
Christof Wollenhaupt
Klaus Hentschel
Moshe
Emerson Reed
Borislav Borissov
Leandro Walfrans
Ricardo Soares
A. Roy Chowdhurry
Yousfi Benameur
Matt Weinbender
Koen Piller
Bernard Bout
Harry Lode
Karl Schierman
Special thanks to Bo Durban, for his continuous and great support, providing new
possibilities for this class.
Jim Nelson and Alex Yudin also have been providing very important help and
suggestions. Lots of things of this new version have their participation.
This version also contains several fixes and new features, as shown below
! Restored Enumeration types for "3D Bars" and "Stacked Area", according to Version
0.40
So, now 3D Bars have the enumeration 11, while Stacked Area goes back to 10.
That would be a problem for existing applications that use 10 as the value, and
Version 0.40 has already more than 1400 downloads.
Fixed the scale calculation. A wrong chart was generated when a�� the values were
equal, or when a single column of
data was used
Improved Gradient effects - now you can specify the locations where the gradient
destination color will be in the shape
New Properties
"GradientType" - Integer,
0 = SigmaBell - gradient brush that changes color starting from the center of
the path outward to the path's boundary. The transition from one color to another
is based on a bell-shaped curve. http://msdn.microsoft.com/en-
us/library/bs92fkt6.aspx
1 = Triangular - gradient with a center color and a linear falloff to each
surrounding color. http://msdn.microsoft.com/en-us/library/c5yfy1y0(VS.80).aspx
The center point of the gradient color of an ellipse can be easilly changed too.
This brings the possibility to control exactly where the gradient will get the
destination color. Just setting the 2 new properties below:
"PieGradCenterAngle" - Numeric, the angle that the desired Center Point for the
gradient brush will be applied (0-360). Use together with "PieGradCenterDistance"
"PieGradCenterDistance" - Numeric, the distance from the center that the desired
Center Point for the gradient brush will be applied (-2, +2). Use together
with "PieGradCenterAngle"
PARAMETERS:
tcFile - character, the destination file name. Make sure to add the extension,
otherwise the chart will be saved in PNG format.
tnQuality - numeric, determines the image quality to be used when a JPEG file is
saved. From 0 (low quality) to 100 (best quality).
Saves the current chart to a file in the image format compatible with Gdi+: Bmp,
Png, Jpeg, Gif, Tiff and Emf.
Just send the file name as a parameter, and FoxCharts will save the current chart
based on the file extension.
Usege:
Thisform.FoxCharts1.SaveToFile("c:\MyChart.Png") && Png image file
Thisform.FoxCharts1.SaveToFile("c:\MyChart.Jpg", 50) && 50% quality Jpg.
For full control while saving, or for using some specific encoders, you can access
the "oBmp" property of FoxCharts and use the GdiPlusX commands available for the
bitmap object.
Fixes:
GetChartProperties - fixed the indentation
Legends in Cylinder shapes were correctly centered
Samples improved using all the new properties - See new "Quality"tab in
CHartsSample_New.scx
MultipleBars chart accepts MinValue
When Click and DblClick events are fired, 4 new properties are populated, in order
to inform about the current chart and the shape that was clicked:
Sample of usage, codes that you may put in your DblClick event:
New Feature:
You may pass Image files to the Fields(n).Shape property, to be drawn in the
points charts
New Sample:
ChartsSample_MultiStacked - shows a workaround to create multiple stacked bars
Fixes:
Various tweaks in many samples
Fixed shape position for points charts
Restored full backwaards compatibility with the ALPHA version. All the old codes
should now
work normally.
Optimized Memberdata usage for custom scripts - left some free space for memberdata
for other customizations, like setting some Favoriyes properties
Fixes
ShapeLegend alignment
Info for version 1.16 RC
-----------------------------------------------------------------------------------
-------
New properties:
LineCapsShape
PieDetachSliceOnLegendClick
PieForceCircle
logical, for Pie and Doughnut charts, determines if the shape will be a circle with
the same width and height.
New GaugeSample
ShowAxis2Tics
Logical, determines if the legend axis (axis2) will show tic marks on each legend.
TicLength
Integer, the length in pixels of the tic marks used in the scales and in the legend
axis.
ShapeLegendExpression: Character,
Specifies an expression that replaces the default ShapeLegend text.
There you'll be able to put any expression to fully customize the text to be
"drawn" inside the chart shapes.
Use the "Curr" properties in order to obtain detailed info about the current shape
and build your expression.
Sample:
transform(This.CurrValue) + CHR(13) + CHR(10) + This.CurrLegend
or
Thisform.CustomLegend()
See Also:
CurrValue, CurrLegend, CurrIndex, CurrObjType, CurrRecNo, CurrColumn
Changed the Initialization of FoxCharts, now users can place code safely in INIT()
event of FoxCharts if they desire so.
Tweaked property descriptions to take benefit from the new cool PEM editor
possibilities
1 - Structure modifications
Removed class FoxCharts_Base - there was no more need to use a separate class to be
able to
use more _Memberdada, since new PEM Editor 4 optimized FoxCHarts Memberdata to use
less than half the
original size
2 - Fixes
Fix in "MouseLeave()" event was firing wrongly when ChangeColorOnMouse was .T.
Fix in Fields(n).ShowValuesOnShape was not working as expected when property
"OldStylePoperties" was .T.
http://vfpx.codeplex.com/Thread/View.aspx?ThreadId=60082
Fix in API call declaration, to use the GdiPlusX original ALIAS for the GDI+
functions: GdipSetPathGradientSurroundColorsWithCount and
xfcGdipSetPathGradientSurroundColorsWithCount
Tweak to avoid Windows7 bug that does not work with PictureVal in VFP9 prior to
SP2. In that case, the rendering will be forced to the disk (using RenderMode=0)
6 - Tooltips
Tooltips will obbey their parent configuration, allowing to have different tooltips
formatting when having more than one FoxCHarts object available in the current
form.
Tooltips will be shown even if the form does not have the focus
7 - Samples
Tweaks in "ChartsSample_Builder"
- Send2MSWord - fix to check if the clipboard is empty before drawing the chart
image in the .DOC (by Koen Piller)
- Tweaked Data grid behavior; grid will adjust its size according to the current
chart specifications.
- Fixed background gradient behavior; now the original secondary color for
background is being saved, and will be restored to original chanfing the Gradient
Level spinner
Fixes:
- When using DrawReport(), the legends on shapes were not appearing correctly
http://vfpx.codeplex.com/Thread/View.aspx?ThreadId=62393
- Legends on Shapes were not appearing correctly on Bars in MultiChart mode (KH)
- Fix in ChartsSample_Builder DoughnutRatio spinner settings tweaked (KP)
Info for version 1.19b RC
-----------------------------------------------------------------------------------
-------
Fix in Detachment of slices when for some reason the user had to change the
selected alias - Churrucks
Fix: ShapeLegends and Tooltips values will show decimals according to the source
values (IS)
http://vfpx.codeplex.com/WorkItem/View.aspx?WorkItemId=23486
Fix: Mouse events are better called in Area charts - fixed the mapping of shapes.
New sample:
ChartsSample_Dynamic.scx
These new charts are also called the 100% Stacked charts.
They are useful for comparing the percent values of several series for the same
points arguments.
The labels in shapes can specify whether real values are shown for each point
label, or the representative percentage;
and also change the visibility of point labels.
New properties:
PieDirection
Integer (0-1), determines the direction that the slices will be drawn in Pie or
Doughnut charts *** 0 = Clockwise, 1 = Anticlockwise
ShowPercentages
Logical, for full-stacked charts, determines if the default ShapeLegend and Tooltip
text will show as Percentage
instead of values
Valid for the chart types:
* 3 - Full-Stacked Bars
* 7 - Simple Bars
* 8 - Multiple Bars
* 12 - Horiz. Simple Bars
* 13 - Horiz. Multiple Bars
* 15 - Horiz. Full-Stacked Bars
* 16 - Full-Stacked Area
Fix: X Axis Legend Captions not taken into account during layout
http://vfpx.codeplex.com/WorkItem/View.aspx?WorkItemId=24458&ProjectName=VFPX#
Fix: Horizontal bars Shape Legend alignment fixed for the case when ShapeLegend
width > Bar width (reported by PH)
Fix: Zero values in Stacked charts will not have space for drawing legends so we'll
ignore this case
Fix: Tweaked samples
Fix: 1st data series should go from 0 to left and the 2nd series from 0 to right.
Fix: bug in the alignment for Paired bars
Fix: fixed Scale Legend (all Horizontal chart styles were not working)
* To do list
ENJOY !!!
DISCLAIMER:
--------------------
FoxCharts is a free and open source project, aiming to offer a charting tool for
Visual FoxPro developers.
It is a part of the VFPX project, from Codeplex, and is under its license.
Please visit the VFPX homepage for more information about this project and license:
http://www.codeplex.com/VFPX