Jump to content
Software FX Community

Series Marker not always updating correctly


MikeK
 Share

Recommended Posts

When I change the visibility, shape, etc. of a series attribute it is not always updating live.  To ensure I could reproduce the problem I took the AddiontalAxesAndPanes example provided and added a button to the window.xaml file.  Then in the window.xaml.cs file I added the following code:

  private Visibility _visibility = Visibility.Collapsed;

private void Button_Click (object sender, RoutedEventArgs e) {

if (_visibility == System.Windows.Visibility.Visible)

_visibility = System.Windows.Visibility.Collapsed;

else

_visibility = System.Windows.Visibility.Visible;

foreach (var series in chart1.Series) {

series.Marker.Size = 12;

series.Marker.Shape = MarkerShape.Circle;

series.Marker.Visibility = _visibility;

}

}

When I click the button the markers do not become visible but if I change the date or seperate the panes it does become visible.  What do I need to do to ensure the markers are updated when I change the SeriesAttribute.Marker properties.

 Thanks,

Michael

Link to comment
Share on other sites

I copied your code "as is" and it worked fine, i.e. the chart got updated properly. Please check the version of ChartFX.WPF.dll that you are using and/or download our most recent hotfix/service pack.

If you are using recent bits it might be necessary to reproduce the problem in a small standalone app so that we can test it here, as it might be related to other properties/state of the control.

JuanC

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...