             debounceTime: @options.debounce,
             ordinal: @ordinal,
             element: element,
-            histogram: definition.histogram
+            histogramThreshold: definition.histogramThreshold
         })
 
         @reloadDataset(id)

        if not dataset
            return

        records = dataset.getRecords()
        paths = dataset.getPaths()
        index = dataset.index
        color = dataset.color

        if paths and paths.length
            @drawPaths(dataset.element, dataset, paths)
        else if records and records.length
            data = records.map((record) =>
                new Date(record[0] + (record[1] - record[0]) / 2)
            )
            if dataset.histogram
                @drawHistogram(dataset.element, dataset, records)
            else
                points = records.filter((record) =>
                    (@scales.x(new Date(record[1])) - @scales.x(new Date(record[0]))) < 5
                )

        )

    drawRanges: (datasetElement, dataset, records) ->
        rect = (elem) =>
            elem.attr('class', 'record')
                .attr('x', (record) => @scales.x(new Date(record[0])) )
                .attr('y', - (@options.ticksize + 3) * dataset.index + -(@options.ticksize-2) )
                .attr('width', (record) => @scales.x(new Date(record[1])) - @scales.x(new Date(record[0])) )
                .attr('height', (@options.ticksize-2))
                .attr('stroke', d3.rgb(dataset.color).darker())
                .attr('stroke-width', 1)

        r = datasetElement.selectAll('rect.record')
            .data(records)
            .call(rect)

        r.enter().append('rect')
            .call(rect)
            .call((recordElement) => @setupRecord(recordElement, dataset))

        r.exit().remove()

    drawPoints: (datasetElement, dataset, records) ->
        circle = (elem) =>
            elem.attr('class', 'record')
                .attr('cx', (a) =>
                    if Array.isArray(a)
                        return @scales.x(new Date(a[0]))
                    else
                        return @scales.x(new Date(a))
                )
                .attr('cy', - (@options.ticksize + 3) * dataset.index - (@options.ticksize - 2) / 2)
                .attr('stroke', d3.rgb(dataset.color).darker())
                .attr('stroke-width', 1)
                .attr('r', @options.ticksize / 2)

        p = datasetElement.selectAll('circle.record')
            .data(records)
            .call(circle)

        p.enter().append('circle')
            .call(circle)
            .call((recordElement) => @setupRecord(recordElement, dataset))

        p.exit().remove()
