情节外的传说 [英] Legend outside the plot

查看:79
本文介绍了情节外的传说的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您知道如何将图例放置在情节区域之外吗?(在代码中和在xaml中)

do you know how can I put the Legend outside the plot area? (Both in code and in xaml)

谢谢您的帮助!

顺式

推荐答案

当前D3库中没有实现将图例移出绘图仪的实现.最多可以做的是通过在源代码中编辑Legend.xaml.cs文件,将图例移动到绘图仪中的其他位置.您必须在代码背后更改依赖项属性,才能在图例区域内移动图例.

There is no implementation in the current D3 library to move the legend outside the plotter. The most that can be done is to move the legend to a different place in the plotter by editing the Legend.xaml.cs file in the source code. You will have to change the dependency properties in the code-behind to move the legend around the area of your plotter.

如果要将图例放在绘图仪之外,则必须重新创建Legend.xaml以使其独立于绘图仪,但仍会收到创建图例所需的相同信息.如果您确实做到了,请在此处将其发布为答案!

If you want to put your legend outside the plotter, you will have to recreate the Legend.xaml to make it independent of the plotter, but still receive the same information it needs to create the legend. If you do manage to do that, please post it here as an answer!

这篇关于情节外的传说的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆