How would I layout a legend with multiple rows? The number of series on the chart is dynamic based on user selected data sets (from 1 to 25 data sets). Eclosing the legend in an XAML container panel would help.
This is for an XamDataChart and ScatterLineSeries.
Hello,
I have been looking into your enquiry and am having some difficulties understanding your scenario. Would you please explain in more details what exactly are you trying to achieve and what have you got so far so I can better assist you. Also some screenshots would surely help me understand your predicament.
Thanks in advance. Looking forward to hearing from you.
We want to have the legend entries wrap like they were placed in a WPF wrap panel. If there are 9 series on the graph with legends A-I, the legend would be arranged
For a wide graph window: ABCDEFGHI
For a narrow graph window ABCDE FGHI
I am just starting on the WPF layout template for the legend.
I have been looking into your requirement and since there is no built-in functionality for that I spent a good 5 hours trying to achieve this using the exposed functionality, but to no avail. I only managed to show the legend as you want it in the initial load, however any change to the Series collection afterwards, resulted in an exception, I couldn’t overcome. If you want I can log a product idea on your behalf so this can appear in a future volume release of ours.
I have also attached the sample project I used for testing for your reference (DataChart_Legend.zip).
HI,
I am just following up on this post.
Please let me know if you need further assistance.
Sincerely, Matt Developer Support Engineer
Thank Petar. I should get stated on this in the next day or two.