We've got a fresh bug with the latest version of WPF TChart library (4.1.2012.2283).
In some cases TChart.Export.Image.XAML.Save method generates invalid xml, that contains Infinity values in Rect.
For Example:
Code: Select all
<Rectangle Fill="#FF4466A3"
Canvas.Left="134.5" Canvas.Top="172" Width="102" Height="1">
<Rectangle.Clip>
<RectangleGeometry Rect="Infinity,Infinity,-Infinity,-Infinity"/>
</Rectangle.Clip>
</Rectangle>
The attached project reproduces the bug. I hope, that bug will be fixed soon, we can't use new version of TChart while we have such errors.