Chart in group footer
Hi everyone!
I would like to put a Pie chart in the group footer of my report so that
the the pie shows the proportion of the row in every group.
The chart and the report have to be linked to the same dbpipeline.
Can that be done? How? I only was able to get the same pie with the proportions
of the complete dataset, not for each group.
I'm using Delphi 2006 Pro, TeeChart 7.08 and RB 10.04
Lionello
I would like to put a Pie chart in the group footer of my report so that
the the pie shows the proportion of the row in every group.
The chart and the report have to be linked to the same dbpipeline.
Can that be done? How? I only was able to get the same pie with the proportions
of the complete dataset, not for each group.
I'm using Delphi 2006 Pro, TeeChart 7.08 and RB 10.04
Lionello
This discussion has been closed.
Comments
The DBChart component in ReportBuilder is a wrapper around the actual
DBTeeChart component in Delphi. This component will traverse the entire
dataset that you give it. In order to only display the value for a specific
group you will need to connect the chart to a separate dataset that is
dynamically updated for each group. I went ahead and created an example of
this altering the Where clause of a separate query in the
GroupHeader.BeforePrint event. You can download the example from the link
below.
http://www.digital-metaphors.com/tips/GroupFooterDynamicPieChart.zip
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
the example sounds good, I'll try to implement it in my application.
Thanks for your time!
Bye,
Lionello