Please see this jsbin:
http://jsbin.com/kizuy/2/edit
My data is in the form:
[{"name":"General","monthEnd":"2013-12-31T00:00:00","balance":50.00},
{"name":"Special","monthEnd":"2013-12-31T00:00:00","balance":120.00},
{"name":"Savings","monthEnd":"2013-12-31T00:00:00","balance":20.00},
{"name":"General","monthEnd":"2014-01-31T00:00:00","balance":100.00},
{"name":"Special","monthEnd":"2014-01-31T00:00:00","balance":120.00},
{"name":"Savings","monthEnd":"2014-01-31T00:00:00","balance":50.00}]
I would like a stacked bar chart that shows the months on the x axis, and stacked columns for the balance, where each portion of the total column is based on the name field. The end user controls the name, so I can't define the stacked groups statically. The current JSBin shows the max balance value for each date (which I know is the default aggregation), rather than a stack of the total.
I have ensured that the data source contains the same number of data points for each group and date. Most of the examples have data in a different structure (values are all together, separate from the categories).
Is there any way to achieve the desired stacked column chart?
http://jsbin.com/kizuy/2/edit
My data is in the form:
[{"name":"General","monthEnd":"2013-12-31T00:00:00","balance":50.00},
{"name":"Special","monthEnd":"2013-12-31T00:00:00","balance":120.00},
{"name":"Savings","monthEnd":"2013-12-31T00:00:00","balance":20.00},
{"name":"General","monthEnd":"2014-01-31T00:00:00","balance":100.00},
{"name":"Special","monthEnd":"2014-01-31T00:00:00","balance":120.00},
{"name":"Savings","monthEnd":"2014-01-31T00:00:00","balance":50.00}]
I would like a stacked bar chart that shows the months on the x axis, and stacked columns for the balance, where each portion of the total column is based on the name field. The end user controls the name, so I can't define the stacked groups statically. The current JSBin shows the max balance value for each date (which I know is the default aggregation), rather than a stack of the total.
I have ensured that the data source contains the same number of data points for each group and date. Most of the examples have data in a different structure (values are all together, separate from the categories).
Is there any way to achieve the desired stacked column chart?