I create charts with crossfilter and dc.js.
In Chart Nr.1 you can see how many guests visit a resturant per day, and the second chart shows the age of the guests. Both are bar charts.
For some calculations I need information from the selected bar. For Example:
In Chart Nr.1 you select the date 16/03/2019 and you see in Chart Nr.2 100 Guests were older then 50 and 30 younger then 50.
Now I need a variable with the 100 Guests, and another with the 30 Guests.
How I get at the data behind the aggregated value of each bar?