I'm working on a dashboard to help companies analyze their cost across many dimensions.
I have it mostly working up at: https://jsfiddle.net/gkke38wk/4/
There are a few things I cannot seem to get working.
SHOW COUNT OF UNIQUE PO BY CONTRACTOR:
I have been able to show this accurately on the Data-Table as you can see in the fiddle, but for some reason nothing I try on the rowChart will show anything but total PO's rows, not Unique PO (This is flattened data, and each line item is a row in the datatable, so one PO may have many rows. FOR EXAMPLE, Bill has only submitted one PO, but it has two lines. The chart shows (2) for Bill).
contractorChart
.dimension(contractors)
.group(contractorGroup)
contractorChart
.dimension(uniqueDim)
.group(contractorGroup)
SHOW TOTAL AMOUNT OF PO
On the Data Table which is mostly working, I want the total column to show the aggregated total of all rows for that PO, not just the first match. In my uniqueDim
function, it only works by aggregating unique PO numbers, not the entire PO object. I'm not sure how to aggregate the total.