Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
Stacked100Bar Chart with variable sections
posted

Hi,

I would like to create a stacked bar chart with sections that I will not know at design time.  Is there any way to do this at run time?  Essentially I have a collection of Objects that each have a name and a score.  So:

Collection<ObjectA>: <-Chart is bound to this

ObjectA has Collection<ObjectB> <- ideally want one bar in chart per ObjectB

ObjectB has Name and Value(numeric) property

I know that it won't work if each ObjectA has differing Names in its Collection<ObjectB>, but if we assume that each ObjectA has the same Names in its Collection<ObjectB>, or even that there is only one ObjectA in the Collection<ObjectA>, is this possible?

 

Thanks