Foxite.COM Community Weblog

Foxite.COM Community Weblog - free weblog service for the Visual FoxPro Community.
Welcome to Foxite.COM Community Weblog Sign in | Join | Help
in
Home Blogs Forum Photos Forum Archives

VFP IMAGING



FoxCharts 0.20 Alpha

Here's a new release of FoxCharts

https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=VFPX&ReleaseId=13477

 

Prerequisites:
Visual FoxPro 9 and the GdiPlusX library from VFPX 









 

As you can see, 2 new charts are now available:

- Stacked Area

- Cylinder

 

  • The StackedArea chart can be defined using the "ChartType" property, that must be set to the numeric 10
  • The Cylinder chart is derived from the original Bars chart. To have it, select ChartType for the bar option, and then set the BarType property to numeric 1 (0 = Bar Default; 1 = Cylinder)

 

Apart from this, many other important modifications were applied:

The main difference is that now FoxCharts' base class is a Container, that contains the GdiPlusX ImageCanvas, and the legend objects, responsible for drawing all the text needed.

Now we can customize any of those labels in lots of ways. Every piece of text, legend in the chart now has the following properties:


Alignment - 0 Left; 1 Right; 2 Center
BackColor
BackColorAlpha - this is cool, (0-255) determines the transparency of the background of the label
Caption
FontBold
FontItalic
FontName
FontSize
FontStrikethru
FontUnderline
ForeColor
ForeColorAlpha - determines the transparency of the label


The legends are represented by the following objects:

Title
SubTitle
XAxis
XAxisLegend2
YAxis
ShapeLegend
ScaleLegend
SideLegend

This way, every piece of text in the chart can be fully customized, not only the font, but the backcolor and the alpha (transparency). Now you can also change the alignment of the text, for example, to set the title to Right Alignment, all you have to do is to:

Thisform.FoxCharts1.Title.Alignment = 1 && Right

 

I still need to remind you that this is still a preview version, destined for people that are interested in helping testing this tool.



Please continue sending your suggestions and feedback!
It is really very appreciated

https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=VFPX&ReleaseId=13477



Contains the ALPHA version of the FoxCharts project.

Unzip the file and run the form ChartsSample to see how it works.

This version also distributes the two main files from GdiPlusX - System.app and GdiPlusX.vcx.
If you are already a GdiPlusX user, you can use your own GdiPlusX version.
Just make sure to be using the latest GdiPlusX version.

GdiPlusX is also a VFPX project. For more information, please visit the GdiPlusX page at VFPX.


More information and pictures about this project can be obtained at the VFPIMAGING weblog:

http://weblogs.foxite.com/vfpimaging/archive/2008/04/04/5919.aspx

http://weblogs.foxite.com/vfpimaging/archive/2008/04/24/6040.aspx


This new release contains lots of enhancements:

Chart Types
- Bar charts
- Multiple bars
- Stacked bars

- Pie
- Doughnut

- Lines
- Area
- Stacked Area
- Points and Shapes


Color variations:
- Basic colors
- Custom colors
- Gradient colors
- Random colors
- Monochrome
- Gradient or solid colors


Legends in many places: Axys, shapes, side legends

Scales

Customize:
- Titles
- Subtitles
- Backgrounds (solid or gradient)
- Fonts
- Colors

Published Wednesday, May 21, 2008 5:18 AM by cesarchalom
Filed Under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Plinio said:

Nice
May 21, 2008 1:56 PM
 

foxerfromchina said:

very good
May 21, 2008 2:48 PM
 

Maros Klempa said:

For first sight excelent. I do not test your project thus my question is maybe stupid. Is it possible to fire Click event when user click on part of chart, eg. one particular bar?

Hi, This was not yet implemented, but in the future versions I hope to add this feature.

May 27, 2008 9:36 PM
 

xinjie said:

Now,This article had translated into Chinese.
http://www.foxsky.net/topic-366.aspx

Thank's again!

I thank you for that translation ! Best Regards, Cesar

May 28, 2008 7:02 AM
 

Andrew said:

Cesar,

Are there docs beyond the Sample project? If not, I will start writing some up.

Let me know.

Thanks

Hi Andrew,

Sorry for the late answer. All recent comments were erroneously sent to my spam folder :-(

In fact, all I did about documentation was to show all the properties available in my post for version "0.14" - at the end you'll find ALMOST all the properties available, with some brief descriptions about them.

Apart from this, a brazilian friend, "Grego" is working creating a new sample. Another one, "Leandro Walfrans" has started creating a builder for it as well. This is all we have till now.

I hope to make some few enhancements soon, and probably will pass it to BETA in the next month.

It would be terrific if you could join us with this. If you can write some documentations it will be indeed of great value to the project. Just let me know if you are really interested in this, so that I can provide you the help you need for this.

Regards

Cesar

 

June 9, 2008 3:19 PM
 

Michael Babcock said:

Cesar,

Is there a forum setup (like phpBB) where I can post code and ask questions?  I'm excited to use this now that it's RC but I can't get past an error when I'm trying to use it on a SCX form.  I keep getting the error "Index or expression does not match an existing member of the collection" on this line in the _preparedata method (see screenshot link):  http://mbsoftwaresolutions.com/images/foxcharts_error.png

I ran Andrew MacNeil's PRG code and was able to get that to work somewhat but wanted to create a SCX form and put the FoxCharts control on it and set the options via the IDE.  

Any ideas as to what I'm doing wrong?

Hi Michael,

I'm glad to know you're trying FoxCharts.

Yes, we have a specific location for people to post about questions, report bugs, ask for enhancements, directly in the VFPX discussions forum - http://www.codeplex.com/VFPX/Thread/List.aspx

Anyway, you can post any questions in the following VFP forums: Foxite (IMO, the best forum, and allows uploading images), UT, FoxBrasil or Profox (I'm not active at Profox, but I try to visit every week).

And also you can contact me directly : vfpimaging at hotmail dot com

Regards

Cesar

January 12, 2009 5:04 AM
 

Exploiter une Image dans DBF | hilpers said:

January 18, 2009 12:57 PM

What do you think?

(required) 
(optional)
(required) 

This Blog

Post Calendar

<May 2008>
SuMoTuWeThFrSa
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

Syndication