Profile Picture

Legends appear behind pie charts

Posted By Ronnie Cohen 11 Years Ago
Author
Message
Ronnie Cohen
Posted 11 Years Ago
View Quick Profile
Forum Newbie

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
Last Active: 10 Years Ago
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 (130 views, 8.00 KB)
cartesian_chart_legend_overlap.png (134 views, 8.00 KB)
Nevron Support
Posted 11 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 1 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009
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
Posted 11 Years Ago
View Quick Profile
Forum Newbie

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
Last Active: 10 Years Ago
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.



Similar Topics


Reading This Topic