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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Square in the middle of a crosshair

Thread ID:

Created:

Updated:

Platform:

Replies:

121246 Nov 23,2015 03:55 PM UTC Nov 25,2015 08:22 AM UTC WPF 3
loading
Tags: SfChart
Ryan Archibald
Asked On November 23, 2015 03:55 PM UTC

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

Santhiya Arulsamy [Syncfusion]
Replied On 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



Ryan Archibald
Replied On November 24, 2015 01:28 PM UTC

Hi Santhiya

That's great thanks very much 

Santhiya Arulsamy [Syncfusion]
Replied On November 25, 2015 08:22 AM UTC

Hi Ryan,

Thanks for the update.

We will wait until we hear from you.

Regards,

Santhiya A

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;