I am using dc.lineChart to generate a line chart to show frequenct VS time. The following is my code
var freqchart=dc.lineChart("#chart1");
var ndx=crossfilter(data);
var countByTime=ndx.dimension(function (d) {
return d.time;
});
var dateformat=d3.time.format("%m-%d-%Y");
var freqbyTimeGroup = countByTime.group()
.reduceCount(function(d) { return d.time; });
freqchart.width(400).height(200).transitionDuration(500)
.dimension(countByTime).group(freqbyTimeGroup)
.elasticY(true).x(
d3.time.scale().domain([d3.min(data,function(d){return d.time}),d3.max(data,function(d){return d.time})])).on("filtered", onFilt).yAxisLabel("Frequency").xAxisLabel('Time');
But I am getting the following blank thing without any graph.
Why can't I view the graph. What sort of change needed in my graph. I wan to show total events in a particular time period. There are many detectors giving response at the same time. I want to show the count of these detectors at a particular time.