How can one avoid drawing the xaxis labels that are displayed on the left/right bounds of the XamDataChart? The leftmost one ends up being covered by the legend and the rightmost one is cut off by the chart bounds. Hopefully these images will illustrate what I mean.
Left side:
Right side:
Regards,
Matt
I ended up doing as Graham suggested - clipping the chart. This works pretty well. A simple ClipToBounds="True" does the trick.
Matt, you could probably also do some advanced things by providing a data template to define the labels on the x axis. If the controls in the label could check how their bounds align with their containing chart (TransformToVisual helps here), they could determine if they should alter their rendering to say, collapse or shorten the text and introduce an ellipsis.
The current functionality will auto-stagger or auto-ellipsis the labels if they collide with each other, but the current assumption is that you might want the outliers to spill out of the chart's area, unless otherwise clipped.
-Graham
Ah, yes, forgot we were talking about WPF. Yes, ClipToBounds is simpler.