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)
Reply
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

Login

Explore
Messages
Mentions
Search