How to use the dc.filterAll function in dc

To help you get started, we’ve selected a few dc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github agdsn / pycroft / web / resources / js / transaction-chart.js View on Github external
$("#reset-all").click(function () {
        dc.filterAll();
        dc.renderAll();
        return false;
    });
    $("#reset-volume-chart").click(function () {
github h12345jack / bilibili-Visualization / src / components / DanmuVisDc.jsx View on Github external
handleReset(){
        dc.filterAll(); 
        dc.renderAll();
        const all_data = this.state.all_data;
        this.setState({
            selected_data: all_data
        })
    }
github NSWSESMembers / Lighthouse / pages / scripts / stats.js View on Github external
$(".total").click(function($e) {
      $e.preventDefault();
      dc.filterAll();
      dc.renderAll();
    });
github mozilla / MozDef / meteor / client / mozdefhealth.js View on Github external
refreshChartData = function() {
            var frontEndData = healthfrontend.find( {} ).fetch();
            var ndx = crossfilter( frontEndData );

            if ( frontEndData.length === 0 && ndx.size() > 0 ) {
                debugLog( 'clearing ndx/dc.js' );
                dc.filterAll();
                ndx.remove();
                dc.redrawAll();
            } else {
                ndx = crossfilter( frontEndData );
            }
            if ( ndx.size() > 0 ) {
                var hostDim = ndx.dimension( function( d ) { return d.hostname; } );
                var hostEPS = hostDim.group().reduceSum( function( d ) { return d.details.total_deliver_eps.toFixed( 2 ); } );
                var hostLoadAverage = hostDim.group().reduceSum( function( d ) { return d.details.loadaverage[0]; } );
                var epsTotal = ndx.groupAll().reduceSum( function( d ) { return d.details.total_deliver_eps; } );

                totalEPS
                    .valueAccessor( function( d ) { return d; } )
                    .group( epsTotal );

                ringChartEPS
github mozilla / MozDef / meteor / client / alertsummary.js View on Github external
"click .reset": function( e, t ) {
            Session.set( 'alertssearchtext', '' );
            Session.set( 'alertsfiltertext', '' );
            dc.filterAll( "alertssummary" );
            refreshAlertsData();
            dc.renderAll( "alertssummary" );
        },

dc

A multi-dimensional charting library built to work natively with crossfilter and rendered using d3.js

Apache-2.0
Latest version published 4 years ago

Package Health Score

59 / 100
Full package analysis