This is a migrated thread and some comments may be shown as answers.

Position pie charts within RadChart

3 Answers 92 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 02 Dec 2008, 10:50 AM
Hi,

I'm trying to position several pie charts in a RadChart.
The CenterXOffset and CenterYOffset properties are used, but when a pie chart is added or removed, all positions are invalid :(

The problem is that every pie needs to have a static position on the page, because the background picture is a country map where every pie displays some information from a specific city.

Is there an eay way to position these pie charts by x and y coordinates?

RadChart1.Series[i].PlotArea.Appearance.Position.X does not seem to work.

Thanks,
Mark

3 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 04 Dec 2008, 01:46 PM
Hi Mark,

In order to move the pie around the plotarea you have to use the CenterXOffset and CenterYOffset properties as you mentioned. This is the only option.

Can you please be a bit more specific about the problems you get when adding/removing pie charts?

Kind regards,
Vladimir Milev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mark
Top achievements
Rank 1
answered on 04 Dec 2008, 02:32 PM
Hi Vladimir,

The pie charts are dynamicly added from records in the database.
When a new record is added, a pie chart is also added (new series).

All previous offsets of the pie charts are not correct anymore and the pie charts are positioned in different places.

So an old pie chart location was located on a city on the chart background picture. In the new situation the old pie charts are not on there cities anymore and all offsets need to be changed by hand.

Because the new pie chart does a scale and reposition, all offsets change.
Can this calculation be suppressed, so all offsets do not change with different number of pie charts?

Mark
0
Vladimir Milev
Telerik team
answered on 08 Dec 2008, 01:24 PM
Hi Mark,

I see. Unfortunately you will need to reposition all pie charts when adding a new series.

We sincerely apologize for this inconvenience.

Regards,
Vladimir Milev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Mark
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Mark
Top achievements
Rank 1
Share this question
or