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.

default Segmet in the ColumnSeries

Thread ID:

Created:

Updated:

Platform:

Replies:

116107 Apr 3,2014 04:34 AM Apr 7,2014 08:56 AM Windows Phone 5
loading
Tags: SfChart
ahmad0101
Asked On April 3, 2014 04:34 AM

is there a way to select a default Segmet  in the ColumnSeries
for exemple when the chart is Loaded the last segment is already selected

Suresh S [Syncfusion]
Replied On April 4, 2014 09:34 AM

Hi Ahmad,

Thank you for using syncfusion products,

We have analyzed the requirement and currently we don’t have a support for default segment selection at load time, however we have achieved this requirement in work around manner, please find the sample in the below location,

Please let us know if you have any further assistant.

Thanks.

Suresh S.


Attachment: ColumnChart_29d3d9a5.zip

ahmad0101
Replied On April 4, 2014 09:25 PM

Thanks For your Supports
Its works fine

Howerever when i try to change the  SegmentSelectedIndex programmatically
i get a System.NullReferenceException



Suresh S [Syncfusion]
Replied On April 7, 2014 06:27 AM

Hi Ahmad,

Sorry about the inconvenience caused.

We have analyzed the reported issue with our sample, but we are unable to reproduce the issue. Could you please revert us by modifying the sample based on your application along with the replication procedure or is it possible for you to share you stack trace details with us?

This would be helpful for us to serve you.

Regards,

Suresh S.


ahmad0101
Replied On April 7, 2014 06:31 AM

Hi here is my code :
            <local:CustomSelectableSeries  x:Name="testChart"  SegmentSelectionBrush="Aqua" EnableAnimation="True" Palette="None" ItemsSource="{Binding CategoricalDatas}" XBindingPath="Category" YBindingPath="Value" Label="First" ShowTooltip="False" chart:ChartTooltip.EnableAnimation="True">

when i try
testChart.SegmentSelectedIndex = 2;

it gives me the exception


Suresh S [Syncfusion]
Replied On April 7, 2014 08:56 AM

Hi Ahmad,

 

Sorry for the inconvenience caused.

We have analyzed the stated issue with your code snippet. This issue can be fixed by accessing series from Chart as in below code snippet. Please let us know if you request further assistance on this.

 

Code snippet [C#]:

(this.columnChart.Series[0] as CustomSelectableSeries).SegmentSelectedIndex = 2;

 

Regards,

Suresh S.


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.

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.

;