Hi,
I have to show the xamchart legend below the chart and its items aligned horizontally not vertically and this xamchart preview as image exactly as in actual view, Please suggest any solution or do the sample project for it .
Thanks
Hello Kashif,
I have modified the sample you sent me, so now it works as you want. Basically I handled the Loaded event of the Grid that contains the Ellipse and Label and in its handler I check the Label’s Content and set different color to the Fill Property of the Ellipse.
Hope this helps you.
Thanks for your reply, but you have set series fill property explicitly if you are not set it, then the custom legend doesnot show any colour in legends chart set the colour of series at its own, have a look at the attached project, we are using default legend colour not setting it explicitly, How can i set series colour in custom legend.
Kashif Mujeeb
I have modified the sample I sent you before, so now the Series are added dynamically and the Legend’s ItemsSource is set after the adding. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
hi,
thanks for your response we have series that is generating dynamically, your solution is not working in my scenario, kindly suggest any solution.
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I collapsed the built in Legend and create an ItemsControl, which shows the Items below the XamChart placed horizontally.