This project is read-only.

Foxcharts - idea for minor improvement

Topics: Enhancement Request
May 25, 2009 at 12:33 PM


if by chance the creators of Foxcharts were getting bored, not knowing what more to implement, I add a new item on wishlist.

In case of .ColorType = 0, chart colors are based on internal color list. It would be great if user had choice of several different predefined color lists or even possibility to define a new one. Sure, I know that I can set colors through Fields(i).Color, but it would be far better if whole color scheme could be changed by setting one property, like Chart.ColorScheme = "bussiness", Chart.ColorScheme = "psychedelic"  or so :-). In this way, the colors would be far less hardcoded, enabling for example quick and easy color changing when user (or boss :-) ) changes mind.


May 25, 2009 at 11:26 PM

Hey Kaven,

LOL, I'm already working on it :-D

FoxCharts will have other 20 enumerated color types for the property "ColorType". Each value will apply a different color pallette.

At the moment, each color palette will bring 8 predefined colors according to a specific "theme"

Is this what you are looking for ?

May 26, 2009 at 5:57 AM

Great, that's exactly what I wanted. I don't have any special wish for a palette, it's just that the colors in ColorType = 0 are too wild to be used in serious application - especially that yellow-red contrast catches the eye.

Looking forward to next version! (how many times have you read this? :-) )

May 26, 2009 at 7:52 PM



May 28, 2009 at 3:18 PM


Just released version 1.17 of FoxCharts.

Many new possibilities have been added, and new samples, small tweaks and fixes.

Line charts allow using images for the caps, customized shapes, etc.
Some color pallettes were introduced as well - now the property "ColorType" can accept values from 0 to 27, each of them providing different color options.

0 = Basic colors
1 = Custom colors
2 = Random Colors
3 = Gradient Colors
4 - 27 = Predefined palette colors.

The best way to test this and other features is to download the latest release and polay with the form "ChartsSample_Builder", that provides ways to customize 95% of the properties available, and generate many kinds of charts.

For the color palettes, on ChartsSample_builder, select the Colors Tab, and select the 5th option in the "Color Type" option button group, and then just change the values from the spinner.

This is still unfinished, and I would like to have your feedback on this, maybe providing some name suggestions for the palettes, and even offering some color pallette color combinations.



May 28, 2009 at 9:31 PM


In fact, I was going to work this evening, but I could not resist playing with colors instead :-)

I'm none of a design specialist, so I can't propose any new color combinations. In fact, I would say that those 23 color palettes are more than enough. But it would be good if user had possibility to define a custom palette. I can imagine situation when I create 20 different charts in application using a predefined palette and then boss tells me "I don't like the color of a second bar, please change it to something different", which means setting custom colors in Fields(n).Color of each chart. If I could make a custom palette, it would be far easier (something like setting one or two properties of each graph). I don't know ho you store your predefined palletes, but custom palette could be anything - a cursor, numeric array, even string of RGB values separated by commas - what fits best your needs.

At least I can offer you names for some color combinations (making them out was the greatest fun of this evening :-) )

4-office bright
7-bussiness bright
21-basic bright
25-nature bright
27-same as 4 :-)

I was also thinking about msgraphs in Excel. Their charts are far worse than what one can do with Focharts, but they could be set up very quickly. It's just a few clicks, you select one of predefined graphs, select data, and you have it done. Maybe there could be something like that in focharts. I imagine it like a method, say "Predef(nPredefChart)", that would set up all chart properties according to predefined schema nPredefChart. User then would just fill .ChartsCount and .Fields properties and chart would be set up. I am really not sure if this feature would be usefull, but maybe there are people who have data in VFP tables and need to visualize without much effort? In any case this is one of few features that Excel has and focharts don't.

May 29, 2009 at 8:49 AM
Edited May 29, 2009 at 8:56 AM

Hi, all.

My way is using "charts.dbf' with ID and few memo fields.
I save charts properties in memo field "graph" for each chart with unique ID.
Calling Charts form I use parameter to identify "ID"
In form's Init first I use


and read charts properties from memo field to adjust chart.
After changing some properties user can save them. Code looks like

REPLACE Graph WITH THISFORM.FoxCharts1.GetChartProperties(3) IN Charts

It's all easy if you try.
Kaven's "names for some color combinations " seems to me as great idea.