In reviewing various demos of highcharts, I noticed that they all tend to adhere to a fairly straightforward data structure:
Categories,Apples,Pears,Oranges,Bananas
John,8,4,6,5
Jane,3,4,2,3
Joe,86,76,79,77
Janet,3,16,13,15
However, the data I have doesn't fit well into this format. While I could adapt it to match, it would be cumbersome to set up and challenging to update.
I'm interested in creating a stacked bar chart that displays categories (Group 1, Group 2, Group 3) along with sales staff and their respective sales figures. The complexity arises from the fact that sales staff members can belong to multiple groups simultaneously, which may change over time.
For example, Category 1 (Group 1) would draw data from a table like the one below:
Date | Date | Group |
Start| End | Lead |
1990 | 1991 | AAA |
1991 | 1994 | BBB |
1994 | 1996 | AAA |
The current design of highcharts links specific details (e.g., John, Jane, Joe) to each category. Creating the aforementioned chart would be simple; however, integrating more complex data involving four categories and over 200 names presents a challenge.
Category Date Start Date End TotDays Name
Apples 5/11/1994 3/1/1995 294 sc
Apples 5/19/1995 6/28/1997 771 lb
...
Cherries 11/2/2012 2/3/2015 823 gg
Given the above scenario, I am uncertain how to proceed using highchart. Can anyone suggest a method for incorporating tables similar to those provided?
Check out this Fiddle to see how it is supposed to look: