问题
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