Hi,
I have to questions which are probably quite easy but I cannot find a solution:
I need to do this not in XMAL but in code.
Thanks for your help!
Hello Gawain,
I can suggest you handle the XamChart's SizeChnaged event and add the following code in the handler:
Scene s = Utilities.GetDescendantFromType(sender as DependencyObject, typeof(Scene), true) as Scene; (s.Content as FrameworkElement).Margin = new Thickness((sender as XamChart).ActualWidth / -10, 0, 0, 0);
this way you can set the margin of the ScenePane. Please note that this is just a guideline, so you can feel free to modify the code in order to cover your requirements. Also I can say that since the control is retired we no longer implements features, so this cannot be added as built-in functionality.
Hope this helps you.
Hello,
sorry, but I am not sure what you mean. What I want to achive is, to let the white space on the left side of the image have a minimum width. How can I do this?
Thanks!
You can set the YAxis' Visibility to Collapsed if you don't want the labels to be shown. Also you can set the LabelSettings' Location to InsideLeft in order to remove the margin on the left.
Hi Stefan,
isn't there any chance to set the chart without any margin on the left side?
Thanks and Regards!
Thank you for your post. I have been looking into it and I can say that since XamChart is a retired control we no longer provide fixes or implement features for it, so my suggestion is to use our XamDataChart control. Also here you can see how to make the legend items there horixontal:
http://es.infragistics.com/community/forums/t/64083.aspx