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
close icon

Determine the width of a chart segment

In my program i have to determine the width of all chart segments in the chart.

I can see a property segments for example in the StackingColumnSeries but it is not public.

Is there a way to get this information through another way.

Thanks,

Johann


1 Reply 1 reply marked as answer

JG Johann Geßler November 15, 2022 05:42 AM

Found the solution by my self:


object chartSegments = chartSeries.GetType().

                                                             GetField("Segments", BindingFlags.NonPublic | BindingFlags.Instance).

                                                                           GetValue(chartSeries);


Marked as answer
Loader.
Live Chat Icon For mobile
Up arrow icon