Expecting Foxcharts 1.0

Oct 14, 2008 at 6:37 AM
Edited Oct 14, 2008 at 7:19 AM
Hi, Cesar!
1. "property for animation ".
I mean that in Foxcharts.DetachClickedSlice in
"lnStep = lnDetachPixels / 3 "
you can use property instead of 3. In small area charts I can use even 10,
but using all screen width/height maybe 1

2."In FoxCharts._CheckMousePosition you can prevent possible error"
- "Did you face any errors in this situation ?"
Yes, I did. For pie with zero slice. It's easy to check.
In Form Init:

INSERT INTO

sales VALUES (0, 100, 80, 55, 44 ,"JAN", .F., RGB(64,64,255) , "01 Legend" , .F.)
INSERT INTO sales VALUES (0, 60, 44, 88, 55 ,"FEB", .F., RGB(32,160,64) , "02 Legend" , .F.)
INSERT INTO sales VALUES (NULL, 100, 75, 43, 66 ,"MAR", .F., RGB(255,160,60), "03 Legend" , .F.)
INSERT INTO sales VALUES ( 0, 70, 100, 110, 77 ,"APR", .F., RGB(0,164,128) , "04 Legend" , .F.)
INSERT INTO sales VALUES ( 0, 90, NULL, 88, NULL ,"MAY", .F., RGB(255,0,0) , "05 Legend" , .F.)

 



3. lcCaption = RTRIM(RTRIM(lcCaption,'0'),'.') in In _legend._update.
I've got real data where Y Axis legend looks like
1200000.00
1400000.00

It's up to you because one can use format.
I just think why this ".00" to show.

4. I'm glad to see your new version. Splendid and coool !
Regards,
Yudin


Developer
Oct 14, 2008 at 11:56 AM
Hi Yudin,

1. "property for animation ".
There you go: now you have the property "PieDetachAnimationSteps"

2 - _CheckMousePosition - Fixed, adding EVL to make all data valid

3 - For this moment, I'll leave it as is. Just waiting for other suggestions.


These changes will be on version 0.96, that you can download in some few minutes.

THANKS VERY MUCH for your help !

Regards

Cesar
Oct 20, 2008 at 10:40 AM
Thanks, Cesar!
You've done it Oct 18 2008. It's my birthday!
Developer
Oct 20, 2008 at 8:51 PM
Edited Oct 20, 2008 at 8:54 PM
>>Thanks, Cesar! You've done it It's my birthday!
 
WE made it !!!
and Congratulations for your birthday !
Nov 5, 2008 at 8:26 AM

Hi, Cesar!
One simple thing

for 2D bars - shadow. Here's my code .

 

* FoxCharts._drawbar

...

 

* Draw the 3D Bar using the 3DBrush

IF This._3D > 0 && 3D
m.ln3DHeight = This._3D
* Prepare Array of points to draw the 3D part of the Bar
LOCAL laPoints(4)
laPoints(1) = .PointF.New(tnX + tnWidth, tnY)
laPoints(2) = .PointF.New(tnX + tnWidth + m.ln3DHeight, tnY - m.ln3DHeight)
laPoints(3) = .PointF.New(tnX + m.ln3DHeight, tnY - m.ln3DHeight)
laPoints(4) = .PointF.New(tnX, tnY)
m.loGfx.FillPolygon(lo3DBrush, @laPoints)
m.loGfx.DrawPolygon(m.loPen, @laPoints)

 

 

* Change only Points 3 and 4

 

 

laPoints(3) = .PointF.New(tnX + tnWidth + m.ln3DHeight, tnY + tnHeight - m.ln3DHeight)
laPoints(4) = .PointF.New(tnX + tnWidth, tnY + tnHeight)
m.loGfx.FillPolygon(lo3DBrush, @laPoints)

 

m.loGfx.DrawPolygon(m.loPen, @laPoints)

ELSE    && here's my code

IF TYPE

('this._oGreybrush')='U'
WITH _Screen.System.Drawing
this.addproperty('_oGreybrush', .SolidBrush.New(.COLOR.FromARGB(This.AlphaChannel, RGB(220,220,220))))
ENDWITH
ENDIF

 

 

m.lnShadowLength=5
m.loGfx.FillRectangle(
this._oGreybrush, tnX+m.lnShadowLength, tnY+m.lnShadowLength, tnWidth, tnHeight-m.lnShadowLength)
ENDIF

 

...

Regards

Developer
Nov 8, 2008 at 5:25 PM
Edited Nov 8, 2008 at 5:26 PM
Hi Alex,

Thanks for another great suggestion.
Please download the most recent version
http://www.codeplex.com/VFPX/Release/ProjectReleases.aspx?ReleaseId=19009

And run "ChartsSample_New.Scx" - select any bar type chart, and select the shadow in the checkbox.
In your sample, you used the fixed value of 5 for the shadow length. Here I'm using the "Depth" value, allowing users to customize this as they like.
What do you think ?

The property now is called "BarsShadow", but probably the best would be to call it just "Shadow", when it is allowed to Pies and doughnuts.

I also improved the gradient experience, please have a look at the TXT file, at the notes for this release.

What do you think of it ?
Nov 11, 2008 at 7:14 AM
Yes, I like it.
Commonly it depends. In some situation shadow can make chart look better.
In some other case it gives nothing. But in the end it rich your Foxcharts.
And surely I like the way you give us a lot of properties to adjust pictures.
Thanks.
Regards.