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

Change EmptyPoint Label

Thread ID:

Created:

Updated:

Platform:

Replies:

118742 Apr 6,2015 06:22 PM UTC Apr 9,2015 07:05 AM UTC Windows Phone 5
loading
Tags: Chart
Washington Morais
Asked On April 6, 2015 06:22 PM UTC

Hi, 
How to change the label only for EmptyDataPoints and how to define a value for this points?
I don't want to use the Average value since I don't want the dynamic column height. I want to define a custom height and a custom label for this points.
Tnks.




Sumathi Jayaraj [Syncfusion]
Replied On April 7, 2015 01:17 PM UTC

Hi Morais,

Thank you for contacting Syncfusion support.

We have analyzed your requirement and we can set the custom height for empty point values by modifying the chart series item source. We have prepared a sample based on your requirements and please fine the sample in the attachement.

sample: WP8Sample.zip

Regards,
Sumathi J

Washington Morais
Replied On April 7, 2015 02:01 PM UTC

Hi Sumathi.
For the column height the sample is ok, but how to change the label associated to the column?
tnks for your time!


Sumathi Jayaraj [Syncfusion]
Replied On April 8, 2015 12:40 PM UTC


Hi Morais,

Thanks for your update.

We are able to apply the custom label for empty point segment by using adornment LabelTemplate with converter as shown in the below code snippet.

Code snippet:

public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)

{

var val = value as ChartAdornment;

if (double.IsNaN(val.YData))

return "Custom";

return val.YData;
}

We have prepared a sample based on your requirements and please find the sample in the following location.

Sample : WP8Sample.zip

Please let us know if you have any queries.

Regards,
Sumathi J


Washington Morais
Replied On April 8, 2015 04:18 PM UTC

Works like a charm!
Tnks!

Sumathi Jayaraj [Syncfusion]
Replied On April 9, 2015 07:05 AM UTC

Hi Morais,

Thanks for the update. Please let us know if you require further assistance on this.

Regards,
Sumathi J

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

;