« Outputting event data on a chart | Contents | Creating a custom event type »

Change chart formatting usings queries and/or lists

Imagine you want a chart where all males are coloured blue, and all females pink. How do you go about this?

First, create two queries, one for males and one for females. Select Tools > Search or click the "Search for individuals" button on the toolbar.

Go to the second tab ("Attributes") and change the Sex field to "Male":

Then save the query; name it "males.qry":

Do the same for females (change "sex" to "female", save query as "females.gqy").

Now go to the chart definition. We'll take a standard Descendant Dignified (Charts > Descendant > Dignified) and change a few details to make it a little more compact first.

Choose to omit titles and legend on the Titles tab:

We want each individual in his or her own box, so make sure that couples will never be put in a single box by selecting "no" on the Layout tab:

Remove the frame around the chart on the Frames tab:

Next, we're removing all content except the preferred identifier on the Content tab:

When you click "Make Chart" you should get a simple chart like this: (click for larger version)

Now for the formatting. Take a look at the Styles tab:

Click "Select Query" and choose "males.gqy". The styles you now see will only be apoplied to the individuals that are included in the "males" query. You'll notice that the different options (font names and sizes, lines, colours, ...) are greyed out. Options you don't change will remain the same as the default options.

Click the yellow "shading" square to choose a different colour for males—we'll pick a light blue:

Now do the same for females (click "select query", pick the "females" query, change "shading" to a light pink).

Then hit "make chart"—hey presto: (click to enlarge)

Note the lonely yellow box at the far right. This one box is of a person of unknown sex. Since it is contained neither in the "males" nor in the "females" query, it has the default (yellow) formatting.

You can combine this with any number more or less advanced queries, e.g. the previous male/female example combined with an ancestor query:

Posted by Michel Vuijlsteke on July 11, 2004 at 11:59 AM in Charts | Permalink

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d834530fb269e200e5501fd14d8833

Listed below are links to weblogs that reference Change chart formatting usings queries and/or lists:

» MP3 download, Music CD, Online music from Digital Sheet Music Downloads from Supermusiconline.info
Download the sheet music for your current favorites and explore our ... Download sheet music for Grammy®-winning and related titles, composers, and artists... [Read More]

Tracked on Mar 25, 2006 7:17:23 AM

Comments

Hi Michel.

Is it possible to do different colours for the events on a chart. For example, Blue text for Occupations and Red text for Emmigrations.

Best wishes

Ron.

Posted by: Ron O'Neill | Dec 3, 2004 5:58:48 PM

Hi

Thanks for the info. The link to the ancestor query ("You can combine this with any number more or less advanced queries, e.g. the previous male/female example combined with an ancestor query: ")
is broken. Do you have an updated link or can you tell us how to do this ?

Thanks

Posted by: Harry | Feb 28, 2005 12:16:20 PM

How to print a geneolgy on A4 with nice seperated pages.Is there a template?

Posted by: harko | Oct 7, 2005 7:31:47 AM

I must be stupid but I cannot find how to find possible problems on a person. For instance "invalid events after death (2 events).
How can you find out what the 2 events are? I believe this has go to be the hardest genealogical data base I have ever seen.

Posted by: Harry | Nov 30, 2005 8:59:41 PM

I want to create a family chart which I can then email to my family members. I don't want to post the chart on the web yet as it is not complete. Is there a way that I can create a chart which can be emailled?

Posted by: Jacob Psutka | Dec 29, 2005 6:08:44 AM

hello,
i am attempting to graphically show that a couple has been divorced. Is there a good way to do this?
Thank you for any help
leah

Posted by: leah | Jan 6, 2006 5:28:48 AM