Hi.
Well it sounds as the documentation requires additional clarification as TimeChart and FacetChart has some properties in common, but the actual approach may vary.
In FacetChart data.aggregation
method makes sense only when using autoCategories
The data.aggragation
is mainly used in TimeChart.
FacetChart structure allows you to set the value of "parent" level as you wish, like in the following example:
var data = {
subvalues: [
{subvalues: [
{name: "Safari sub-val-1", value: 20},
{name: "Safari sub-val-2", value: 2}
], name: "Safari Total", value: 22, "id": "safari"},
...
You can set Safari Total
value to be 22 (sum) or set it to 11 (avg) or maybe some other calculated value.
What I'm saying is that you actually don't need to use data.aggregation, but you can calculate the value yourself and set it to the parent entry.