July 23, 2008, 06:14 AM
<Arun>Pie charts
Hi All,
can anyone provide a link where i can get good insight on Pie charts..
i searched , but i dint get any place where the docs are good.
Thanks
July 23, 2008, 06:24 AM
nubithere were quite a few results in the search engine for 'Pie Chart'
I think there should be something in there which covers whatever it is you wnat to know....
July 23, 2008, 06:33 AM
FrankDutchthe documentation gives you also lot of possibilities.
what special thing do you want to know
July 23, 2008, 08:16 AM
<Arun>I need to create a report (pie chart+table)
Following are the columns in the table:
asset type
market value
i should produce pie chart , showing % market value of each asset type
and below the pie chart , i should have table like:
asset type market value($) %
X cash $500 50%
X fixed income $250 25%
X others $250 25%
in the place where X comes, we should show the colour for each asset type, as present in the pie chart.
My problem is :
The legend colour for a 'asset type' present in the pie chart should match the colour present in the table for that particular 'asset type'.
Pls let me know how can i achieve this?
July 23, 2008, 09:22 AM
mgrackinArun,
The graphing documentation is free on IBs web site.
The command to control the color in graphs for a series is the setFillColor command. Read about it in the manual and it will give you a lot of good information.
For Example:
setFillColor(getSeries(0),new Color(255,0,255));
July 23, 2008, 09:38 AM
<Arun>Mickey,
The actual problem is :
The legend colour for a 'asset type' present in the pie chart should match the colour present in the table for that particular 'asset type'.
i am not able to achieve this.
July 23, 2008, 09:51 AM
mgrackinArun,
Use the setFillColor to force the colors in the Pie Chart and Legend to match the colors you are using in the Table.
This should get you what you are trying to achieve or at least get you going in the right direction.
July 23, 2008, 10:50 AM
FrankDutchArun
Is it just a coincidence that someone else from India asked more or less the same question...
July 23, 2008, 10:58 AM
nubiquote:
Originally posted by FrankDutch:
Arun
Is it just a coincidence that someone else from India asked more or less the same question...
i don't think the forum is big enough to get away with having multiple ID's (if that's what you are getting at
) either way it shows how useful doing a proper search can be....