This question is locked. New answers and comments are not allowed.
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:
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.
Bardi
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:
<
chart:AreaSeries.PointTemplate
>
<
DataTemplate
>
<
Ellipse
Width
=
"16"
Height
=
"16"
Stroke
=
"{StaticResource ResourceKey=PhoneBorderBrush}"
StrokeThickness
=
"3"
Fill
=
"{Binding DataItem.Colour}"
Visibility
=
"{Binding DataItem.Visibility}"
/>
</
DataTemplate
>
</
chart:AreaSeries.PointTemplate
>
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.
Bardi