I have a very very simple requirement - and I cannot find documentation that lets me create what I need. Ive spent days now looking into this, and I cant believe that I cant get this working.
ALL I want is a simple bar chart (Bar_Stacked_100) with 4 rows and 3 different coloured bars in each row depending on the data - and to add that to my Word paragraph IWParagraph) - should be very simple
I have a data object type call 'Data' with 3 integer properties and one string property. This represents the chart 'Row'
I want the string property to be the label on the left, and I want each of the integer properties to be the 3 colored bars depending on value - but add up to 100%
I simply cannot get this scenario to work in any way
I have been through EVERY piece of example code on the internet. I cant work out a way for this to work.
Particular questions are:
1) How to a hook up the string property in my data class to the left row label
2) How do I tell the code which integer property represents which block of color in the chart
How can I get any of it to work ?
Can someone point me to an example where I can get something meaningful to appear in my DocIO generated document
Here is the data class for the rows
public class Data
{
public string Area { get; set; }
public int RedCount { get; set; }
public int AmberCount { get; set; }
public int GreenCount { get; set; }
}
If anyone can show code that puts a few of these rows into a stacked bar_100 chart in a word document I would be massively relived.
Thanks