I've got a grouped stacked bar chart with some help from the folks on the chartjs github page. The implementation is great and has helped me build the type of chart I'm looking for. What I'm trying to add now is a label to denote what each of the stacks are.
Here is the JS fiddle I have in progress: http://jsfiddle.net/4rjge8sk/1/
my current dataset looks like this and I would like to make a clever solution where I could add a stack label into the dataset like so:
datasets: [
{
label: "Apples",
backgroundColor: "rgba(99,255,132,0.2)",
data: [20, 10, 30],
stack: 1,
stackLabel: "Stack 1"
}
And here is the desired outcome I'm trying to build with the stack labels:
I'm not great with writing a plugin for ChartJS just yet but I would like to understand how to draw with it a little more. Thanks for any help.