Hi.
I'm working with scatter chart.
I cannot handle the points size (radius).
It atomatically increased when I maximize my window that contains chart.
How can I set scatter point size and prevent its resizing ?
I tried StrokeThickness parameter - it didn't work.
See sample below
<Window xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " xmlns:igCA="http://infragistics.com/Chart" xmlns:d=" http://schemas.microsoft.com/expression/blend/2008 " xmlns:mc=" http://schemas.openxmlformats.org/markup-compatibility/2006 " x:Class="SQCTest.TestScatterWind" x:Name="Window" Title="Window4" Width="640" Height="480" mc:Ignorable="d">
<Grid x:Name="LayoutRoot"> <igCA:XamChart d:LayoutOverrides="Width, Height"> <igCA:XamChart.Series> <igCA:Series ChartType="Scatter" Label="Series 2"> <igCA:Series.DataPoints> <igCA:DataPoint> <igCA:DataPoint.ChartParameters> <igCA:ChartParameter Type="ValueX" Value="1"/> <igCA:ChartParameter Type="ValueY" Value="40"/> </igCA:DataPoint.ChartParameters> </igCA:DataPoint> <igCA:DataPoint> <igCA:DataPoint.ChartParameters> <igCA:ChartParameter Type="ValueX" Value="3"/> <igCA:ChartParameter Type="ValueY" Value="110"/> </igCA:DataPoint.ChartParameters> </igCA:DataPoint> <igCA:DataPoint> <igCA:DataPoint.ChartParameters> <igCA:ChartParameter Type="ValueX" Value="5"/> <igCA:ChartParameter Type="ValueY" Value="70"/> </igCA:DataPoint.ChartParameters> </igCA:DataPoint> <igCA:DataPoint> <igCA:DataPoint.ChartParameters> <igCA:ChartParameter Type="ValueX" Value="9"/> <igCA:ChartParameter Type="ValueY" Value="70"/> </igCA:DataPoint.ChartParameters> </igCA:DataPoint> </igCA:Series.DataPoints> </igCA:Series> </igCA:XamChart.Series> </igCA:XamChart> </Grid></Window>
Regards,
I've already received the the following answer from the Infragistics support
You can prevent the DataPoints from resizing by using a DataTemplate to style the markers. For a sample on how to use a DataTemplate for the markers, please see the following documentation:<http://help.infragistics.com/NetAdvantage/WPF/Current/CLR4.0/?page=xamChart_Using_a_DataTemplate_to_Style_Markers.html>
I used this template
<igCA:XamChart.Resources> <DataTemplate DataType="{x:Type igCA:MarkerTemplate}"> <Ellipse Stroke="{Binding Path=Stroke}" Fill="{Binding Path=Fill}" ToolTip="{Binding Path=ToolTip}" Width="4" Height="4"/> </DataTemplate>
I'm not sure if this would work for you but one option is to enable the markers on the series and change the MarkerSize prior to the resizing of the main window and the chart using SizeChanged event
<igCA:Series.Marker>
<igCA:Marker Type="Circle" MarkerSize="5"/>
</igCA:Series.Marker>