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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How access ColumnSegment of Chart

Thread ID:

Created:

Updated:

Platform:

Replies:

118782 Apr 9,2015 11:56 AM UTC Apr 15,2015 05:45 PM UTC WPF 3
loading
Tags: SfChart
Herbert Moroni Cavallari de Costa Gois
Asked On April 9, 2015 11:56 AM UTC

Hi!

I want access the ColumnSegmentCollection of my sfchart!

i know i can get the columnsegment like:

private void ColumnSeries_MouseDown(object sender, MouseButtonEventArgs e)

        {

            FrameworkElement element = e.OriginalSource as FrameworkElement;

            if (element != null && element.Tag is ChartSegment)

            {

                ColumnSegment segment = element.Tag as ColumnSegment;

            }

        }


but i want read all segment in other function, ex:
sfchart.Series[0].ChartSegmentCollection


Thank you


Santhiya Arulsamy [Syncfusion]
Replied On April 10, 2015 12:06 PM UTC

Hi Herbert,

Thanks for contacting Syncfusion support.

We have analyzed the reported query and it can be achieved by defining the CustomColumnSeries class which is inherited from the ColumnSeries, since the Segments property are in protected access modifier we need to inherit the ColumnSeries. In that class we have defined the ChartSegmentsCollection, which has the collection of ChartSegment. We have prepared a sample based on your requirement.

Sample: Column_Series.zip

Please find the sample in the following location.

Thanks,
Santhiya A.

Herbert Moroni Cavallari de Costa Gois
Replied On April 14, 2015 08:50 PM UTC

Santhiya, i forgot to say: "Thank you"

it worked fine, thank you!

Sheik Syed Abthaheer M [Syncfusion]
Replied On April 15, 2015 05:45 PM UTC

Hi Herbert,

Thanks for the update. 

Please let us know if you need any further assistance on this. 

Regards,
M. Sheik


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

;