Jump to content
Software FX Community

Pie Chart Legen Alignment


beltrams

Recommended Posts

I have a pie chart, for some reason the legend appear more or less in the top-center instad of top-right.

If I change the graph to be column or cureve the legend is correctly in the top-right, but not for pie.

This is my code:

<

cfx:LegendBox cfx:Chart.TargetPanel="Inside" DockPanel.Dock="Top" HorizontalAlignment="Right" VerticalAlignment="Top" Visibility="{Binding Path=Text, ElementName=LegendBoxVisibilityDummyTextBox, Mode=OneWay}">
Link to comment
Share on other sites

You can use "Tools" which is the default value for the TargetPanel attached property if you want to setup a binding and return "Inside" for axis charts and "Tools" for non-axis charts.

BTW, "Inside" will in fact place the label on top of the pie and HorizontalAlignment is honored (obviously if available space is bigger than legend)

If your space is constrained you might want to look at this

JuanC

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...