Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1240
How to make a Horizontal legend for a chart?
posted

I'd like to change the legend to be more horizontal, to fit beneath a chart. The default legend is vertical:

A

B

C

I'd like it to be horizontal like:

A   B   C

I have been trying to get this working by defining the legend template, but I can't seem to get it working. If I use a Grid (like the XamChartDefault.xaml file does), it works, but is veritcal. If I try to use another control, like a WrapPanel, then it seems to ignore the ContentPresenter and nothing shows up.

At this point, I'm out of ideas, and coming up blank on Google searches.

Any ideas?

Thanks,

Mike