This project is read-only.

Changing the location of the legend

Feb 9, 2009 at 3:52 AM
I have line graphs which typically start in the lower-left corner of the canvas and end up on the upper-right corner.  Since the data ends up high on the right side of the canvas, the legend box gets in the way and I need to drag the graph with the mouse in order to see the end of the line.  Is there a way I can move the location of the legend box so it won't be in the way?  It would even be nice if I could move it into the header or footer.
Feb 14, 2009 at 4:11 PM
Hi!

Internally Legend has a Canvas with a Grid on it, Grid has Canvas.Right = 5 and Canvas.Top = 5.
For now you can simply change these values, for example, set Canvas.Left to 5 and clear Canvas.Right. Of course, it is a workaround, but Legend doesn't allow now changing of its internal template. This feature will be added to our roadmap, as you need it. Moving Legend to Footer or Header is also planned, but not implemented yet.

С уважением, Regards,
Михаил Бринчук. Mikhail Brinchuk.


2009/2/9 psyphyre <notifications@codeplex.com>

From: psyphyre

I have line graphs which typically start in the lower-left corner of the canvas and end up on the upper-right corner. Since the data ends up high on the right side of the canvas, the legend box gets in the way and I need to drag the graph with the mouse in order to see the end of the line. Is there a way I can move the location of the legend box so it won't be in the way? It would even be nice if I could move it into the header or footer.

Read the full discussion online.

To add a post to this discussion, reply to this email (dynamicdatadisplay@discussions.codeplex.com)

To start a new discussion for this project, email dynamicdatadisplay@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Apr 2, 2009 at 4:51 PM
Hi Mikhail,

Do you have xaml code for this workaround. I have tried everything and the legend will not move.
BTW, awesome product!
Apr 3, 2009 at 11:06 AM
Hi,

Thank you for your appreciation!)

Currently, there is now convenient way to change position of legend, but you indeed can do it (I've checked it recently :-) ), modifying DynamicDataDisplay source code:
Open file Legend.xaml from DynamicDataDisplay\Charts and change there values of attached properties Canvas.Top || Canvas.Left || smth like this, set on Grid, to values that you want.

Hope this'll help.

Mikhail.