As a prerequisite to charting with dc.js, you have already set up crossfilter dimensions. For example, you have a timeline chart, using a crossfilter dimension you created and bound to the javascript variable 'date'. In this case you can do just this:
date.top(Infinity)
to get all dimension values in an array, corresponding to your current selection.