Hi
I have pretty much used the dayOfWeekChart, volumeChart (Range Chart) and move chart from the getting started demo, with my data, so far so good.
I have added a NumberDisplay, to show the sum of one variable of the of the selected data.
This NumberDisplay updates perfectly in response to the dayOfWeekChart interaction, but ignores changes to the date range being set by the range chart.
Is there a way to pass the date range beings set so that the reduceSum behind the NumberDisplay is limited to the date range of interest ?
Thank you
Ben
NumberDisplay code
const totalAmount = new dc.NumberDisplay("#number-box");
var sumAllAmount = dateDimension.groupAll().reduceSum(function(d) { return d.amount });
totalAmount.group(sumAllAmount)
.formatNumber(d3.format(".2s"))
.valueAccessor(function(d) { return d; })