Hiding a specific DataPoint u

Thread is closed for posting
2 posts, 0 answers
  1. Bardi
    Bardi avatar
    5 posts
    Member since:
    Dec 2013

    Posted 29 Dec 2013 Link to this post

    Hi there,

    I was wondering whether it was possible to hide specific DataPoints on an (AreaSeries) chart? In my particular case, I do not want my chart's first DataPoint's ellipsis to appear on it.

    This is the code for the ellipsis that appears for each DataPoint:

                <Ellipse Width="16" Height="16" Stroke="{StaticResource ResourceKey=PhoneBorderBrush}" StrokeThickness="3" Fill="{Binding DataItem.Colour}" Visibility="{Binding DataItem.Visibility}"/>

    The value of DataItem.Visibility is set to "Collapsed" for the first data point and "Visible" for all the others. However, it appears even if the value of just one point's visibility is set to "Collapsed", all others will be hidden too. On the other hand, the binded "Fill" colour set for each data point is represented correctly i.e. if one has a different Fill colour value to all others, this doesn't result in the colour of all to be set to the same colour.

    Any guidance here would be much appreciated.

  2. Todor
    Todor avatar
    798 posts

    Posted 02 Jan 2014 Link to this post

    Hi Bardi,

    Thank you for your question.

    The size of all data points is determined by the first data point and this is why if it is collapsed you don't see the others. If you need to hide the first point, you can set its Opacity to 0 instead. This way the size will be correctly calculated and the first point will not be visible.

    Let me know if you need further assistance.

    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Back to Top