We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Square in the middle of a crosshair

I am wondering if it is possible to have a square in the middle of a cross hair as you move it around the graph, for a line graph, and if it is possible to edit the colour of the label on the x and y axis for the trackball info, the furthest I can get to being close with the color of the label is that the text block has the background but the black surrounds the text block too.

Thanks in advance

Ryan

3 Replies

SA Santhiya Arulsamy Syncfusion Team November 24, 2015 12:52 PM UTC

Hi Ryan,

Thanks for contacting Syncfusion Support.

Query 1: How to place a square in the middle of the crosshair?

We have prepared a sample to place the square in the intersecting point of the lines by using the CustomCrossHairBehavior. Please find the sample from the following location.

Sample:Crosshar_121246

Query 2: How to change the color of axis label?

You can achieve your requirement by using the CrosshairLabelTemplate property in the ChartAxis. Please refer to the following code example.

 

[XAML]

<DataTemplate x:Key="yCrossLabelTemplate">


<TextBlock Text="{Binding ValueY}" Background="Black" Foreground="White"/>


</DataTemplate>



Regards,

Santhiya A




RA Ryan Archibald November 24, 2015 01:28 PM UTC

Hi Santhiya

That's great thanks very much 


SA Santhiya Arulsamy Syncfusion Team November 25, 2015 08:22 AM UTC

Hi Ryan,

Thanks for the update.

We will wait until we hear from you.

Regards,

Santhiya A

Loader.
Up arrow icon