Page 1 of 1

How to realize a pie chart with scroll bars

Posted: Tue Aug 13, 2013 12:22 pm
by 10049140
Hi.

I want to implement a pie chart in Delphi with TeeChart Pro, which can be zoomed in.
When the chart is zoomed I would like to show scrollbars on the right and bottom axis, so that the user is able to see a certain part of the pie chart.

I did not find an easy way to do this.
Am I missing something, or do I really have to add TScrollbars to my panel and do all the scrolling stuff by myself?

Thank you in advance!
Best regards.

Re: How to realize a pie chart with scroll bars

Posted: Wed Aug 14, 2013 2:09 pm
by yeray
Hi,
marder wrote:or do I really have to add TScrollbars to my panel and do all the scrolling stuff by myself?
If you want is to change the TChart Aspect.Zoom/ZoomFloat, Aspect.HorizOffset/HorizOffsetFloat and Aspect.VertOffset/VertOffsetFloat properties, as you say, you could to it using ScrollBars.
Alternatively, you could use Mouse events in a similar way than TeeCommander does, when activating the Move and Zoom buttons in the component.