Legends appear behind pie charts


Author
Message
Ronnie Cohen
Ronnie Cohen
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)
Group: Forum Members
Posts: 7, Visits: 1
When I create a pie chart with a legend and there is not enough room to show them separately, part of the pie chart covers the legend. In cartesian charts, the legend always appears on top of the charts. I would like to know how I can make the legend appear in front of (i.e. on top of) the pie chart rather than behind it when the legend and the pie chart overlap.

For an example, compare the two attached images. One shows a cartesian chart and the other shows a pie chart.
Attachments
pie_chart_legend_overlap.png (148 views, 8.00 KB)
cartesian_chart_legend_overlap.png (151 views, 8.00 KB)
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hello Ronnie,
Take a look at the following example: All Examples -> Panels -> Legend -> General
For both Cartesian and Pie chart, the order of the Chart and Legend panels is of importance.

Best Regards,
Nevron Support Team


Ronnie Cohen
Ronnie Cohen
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)
Group: Forum Members
Posts: 7, Visits: 1
I have found a solution to this problem.

I have added the following line of code for the NPieSeries object named "pie":
pie.Chart.SendToBack()

That ensures that the legend appears in front of the pie chart rather than behind it. Before I tried it, I was not sure whether this was possible.

Thank you for your prompt reply.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic
1 active, 1 guest, 0 members, 0 anonymous
No members currently viewing this topic!

Login

Explore
Messages
Mentions
Search