Hi there.
First of all, excuse my English, I am not a native speaker. Before posting I’ve been looking for some information on the following question with no luck, so far. I need to plot a dataset consisting of the number of birds of each sex produced in an aviary in different years.
Sex has 3 “levels” (male, female and unknown), and is defined as:
sexList := array of array[0..2] of Double
Years are defined as:
yearList := array of Double
My first intention is to plot the dataset using a bar chart with Years in the X axis and Sex in a YList with 3 levels per year (male, female and unknown, side-by-side bars). When the dataset is ready, I iterate on the length of the yearList array, adding X and Ylist to the chart source with an AddXYList procedure.
For i = 1 to Length(yearList) do
listSrc.AddXYList(yearList[i-1], sexList[i-1], yearLabel, . etc...
And here comes the question. I want to use a different color for each of the 3 YList values (male, female, unknown), but replicate the same color scheme for these levels across years. As far as I know, the AddXYList procedure admits a color parameter, but it seems to be for the whole Ylist, not for each level of the YList individually. Am I missing something? Is there any way, apart from using a different approach with 3 different series with their own style, to assign different color values to the different “levels” of an YList?
Thank you.