Hi.
I have an WPF application with a Scatter Chart. I would like to dynamically change the width and height of a rectangular marker on the Scatter Chart in C#. Is that possible?
Thanks in advance,
Hello,
You can use the MarkerSize property to increase or decrease the size of the marker e.g. in a button click event.
private void button1_Click(object sender, RoutedEventArgs e){ xamChart1.Series[0].Marker.MarkerSize = 10;}
Regards
Vlad
Vlad,
Thanks for the quick reply.
Setting the MarkerSize to a larger number is just making a square marker a larger square marker.
I am using a MarkerTemplate to make a Rectangular Marker with a specified width and height:
<DataTemplate DataType="{x:Type igCA:MarkerTemplate}"> <Rectangle Stroke="{Binding Path=Stroke}" Fill="{Binding Path=Fill}" Width="10" Height="2" /></DataTemplate>
In code, I would like to modify each marker's width and height based on other settings in my application and then update chart to display the new marker rectangles.
Is this possible?
Thanks,
Sue