Legend outside the plot

笑着哭i 提交于 2021-01-28 20:33:25

问题


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

Thank you for your help!

cis


回答1:


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.

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!



来源:https://stackoverflow.com/questions/13761032/legend-outside-the-plot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!