This question is locked. New answers and comments are not allowed.
I need a stacked bar chart where each individual 'block' that stacks up to a bar is a unique item/value. The examples I have seen seem to show the individual blocks of items making up the stack, so that each block is a category, that is in each bar. (Wow.. does what I said even make sense...)
Imagine 10 indivdual datapoints each point represents a sale to a company, with a name, price, and date. I need a bar chart by month where the total height of the bars is the total sales for the month, but the individual stacks in the bar represent the individual sales. I need to hover over an item in the bar and show the company name. Is this possible?
Here is some sample data:
Imagine 10 indivdual datapoints each point represents a sale to a company, with a name, price, and date. I need a bar chart by month where the total height of the bars is the total sales for the month, but the individual stacks in the bar represent the individual sales. I need to hover over an item in the bar and show the company name. Is this possible?
Here is some sample data:
public partial class MainPage : UserControl
{
public class Company
{
public string Name { get; set; }
public double PurchasePrice { get; set; }
public DateTime PurchaseDate { get; set; }
public Company(string name, double price, DateTime date)
{
Name = name;
PurchasePrice = price;
PurchaseDate = date;
}
}
public MainPage()
{
InitializeComponent();
Loaded += new RoutedEventHandler(MainPage_Loaded);
}
void MainPage_Loaded(object sender, RoutedEventArgs e)
{
List<Company> sampleData = new List<Company>();
sampleData.Add(new Company("AAA", 500, new DateTime(2010, 1, 1)));
sampleData.Add(new Company("BBB", 600, new DateTime(2010, 1, 1)));
sampleData.Add(new Company("CCC", 100, new DateTime(2010, 1, 1)));
sampleData.Add(new Company("DDD", 100, new DateTime(2010, 2, 1)));
sampleData.Add(new Company("EEE", 300, new DateTime(2010, 2, 1)));
sampleData.Add(new Company("FFF", 200, new DateTime(2010, 2, 1)));
sampleData.Add(new Company("GGG", 900, new DateTime(2010, 2, 1)));
sampleData.Add(new Company("HHH", 400, new DateTime(2010, 3, 1)));
sampleData.Add(new Company("III", 400, new DateTime(2010, 3, 1)));
sampleData.Add(new Company("JJJ", 200, new DateTime(2010, 3, 1)));
//????
}
}