Skip to content

Instantly share code, notes, and snippets.

@Divya1425
Last active September 28, 2017 09:55
Show Gist options
  • Save Divya1425/3a3910ad827cb2f6b071cca8423d8519 to your computer and use it in GitHub Desktop.
Save Divya1425/3a3910ad827cb2f6b071cca8423d8519 to your computer and use it in GitHub Desktop.
layout title description platform control documentation
post
Markers
How to customize markers in Essential Xamarin.Forms Sparkline
xamarin
Sparkline
ug

Markers

Markers are used to highlight the data point in SfLineSparkline and SfAreaSparkline. You can use the following properties to customize the appearance.

  • IsVisible - used to change the visibility of the marker.
  • Width - used to change the width of the marker.
  • Height - used to change the height of the marker.
  • Color - used to change the color of the marker.

{% tabs %}

{% highlight xaml %}

<sparkline:SfLineSparkline ItemsSource="{Binding Data}" YBindingPath="Performance">
sparkline:SfLineSparkline.Marker <sparkline:MarkerBase IsVisible="True" Width="15" Height="15"/> </sparkline:SfLineSparkline.Marker> </sparkline:SfLineSparkline>

{% endhighlight %}

{% highlight c# %}

SfLineSparkline lineSparkline = new SfLineSparkline() { YBindingPath = "Performance", ItemsSource = viewModel.Data, Marker = new MarkerBase() { IsVisible = true, Width = 15, Height = 15 } };

{% endhighlight %}

{% endtabs %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment