Load Testing Results/Results/Java Service/3 pods/Registration Service/5000 users 10 seconds/dashboard/content/js/graph.js
/*
 * Activates or deactivates all series of the specified graph (represented by id parameter)
 * depending on checked argument.
 */
Activates or deactivates all series of the specified graph (represented by id parameter)
depending on checked argument.
Activates or deactivates all series of the specified graph ( represented by id parameter ) depending on checked argument .
function toggleAll(id, checked){
    var placeholder = document.getElementById(id);
    var cases = $(placeholder).find(':checkbox');
    cases.prop('checked', checked);
    $(cases).parent().children().children().toggleClass("legend-disabled", !checked);
    var choiceContainer;
    if ( id == "choicesBytesThroughputOverTime"){
        choiceContainer = $("#choicesBytesThroughputOverTime");
        refreshBytesThroughputOverTime(false);
    } else if(id == "choicesResponseTimesOverTime"){
        choiceContainer = $("#choicesResponseTimesOverTime");
        refreshResponseTimeOverTime(false);
    }else if(id == "choicesResponseCustomGraph"){
        choiceContainer = $("#choicesResponseCustomGraph");
        refreshCustomGraph(false);
    } else if ( id == "choicesLatenciesOverTime"){
        choiceContainer = $("#choicesLatenciesOverTime");
        refreshLatenciesOverTime(false);
    } else if ( id == "choicesConnectTimeOverTime"){
        choiceContainer = $("#choicesConnectTimeOverTime");
        refreshConnectTimeOverTime(false);
    } else if ( id == "choicesResponseTimePercentilesOverTime"){
        choiceContainer = $("#choicesResponseTimePercentilesOverTime");
        refreshResponseTimePercentilesOverTime(false);
    } else if ( id == "choicesResponseTimePercentiles"){
        choiceContainer = $("#choicesResponseTimePercentiles");
        refreshResponseTimePercentiles();
    } else if(id == "choicesActiveThreadsOverTime"){
        choiceContainer = $("#choicesActiveThreadsOverTime");
        refreshActiveThreadsOverTime(false);
    } else if ( id == "choicesTimeVsThreads"){
        choiceContainer = $("#choicesTimeVsThreads");
        refreshTimeVsThreads();
    } else if ( id == "choicesSyntheticResponseTimeDistribution"){
        choiceContainer = $("#choicesSyntheticResponseTimeDistribution");
        refreshSyntheticResponseTimeDistribution();
    } else if ( id == "choicesResponseTimeDistribution"){
        choiceContainer = $("#choicesResponseTimeDistribution");
        refreshResponseTimeDistribution();
    } else if ( id == "choicesHitsPerSecond"){
        choiceContainer = $("#choicesHitsPerSecond");
        refreshHitsPerSecond(false);
    } else if(id == "choicesCodesPerSecond"){
        choiceContainer = $("#choicesCodesPerSecond");
        refreshCodesPerSecond(false);
    } else if ( id == "choicesTransactionsPerSecond"){
        choiceContainer = $("#choicesTransactionsPerSecond");
        refreshTransactionsPerSecond(false);
    } else if ( id == "choicesTotalTPS"){
        choiceContainer = $("#choicesTotalTPS");
        refreshTotalTPS(false);
    } else if ( id == "choicesResponseTimeVsRequest"){
        choiceContainer = $("#choicesResponseTimeVsRequest");
        refreshResponseTimeVsRequest();
    } else if ( id == "choicesLatencyVsRequest"){
        choiceContainer = $("#choicesLatencyVsRequest");
        refreshLatenciesVsRequest();
    }
    var color = checked ? "black" : "#818181";
    if(choiceContainer != null) {
        choiceContainer.find("label").each(function(){
            this.style.color = color;
        });
    }
}
function toggleAll ( id , checked ) { var placeholder = document . getElementById ( id ) ; var cases = $ ( placeholder ) . find ( ':checkbox' ) ; cases . prop ( 'checked' , checked ) ; $ ( cases ) . parent ( ) . children ( ) . children ( ) . toggleClass ( "legend-disabled" , ! checked ) ; var choiceContainer ; if ( id == "choicesBytesThroughputOverTime" ) { choiceContainer = $ ( "#choicesBytesThroughputOverTime" ) ; refreshBytesThroughputOverTime ( false ) ; } else if ( id == "choicesResponseTimesOverTime" ) { choiceContainer = $ ( "#choicesResponseTimesOverTime" ) ; refreshResponseTimeOverTime ( false ) ; } else if ( id == "choicesResponseCustomGraph" ) { choiceContainer = $ ( "#choicesResponseCustomGraph" ) ; refreshCustomGraph ( false ) ; } else if ( id == "choicesLatenciesOverTime" ) { choiceContainer = $ ( "#choicesLatenciesOverTime" ) ; refreshLatenciesOverTime ( false ) ; } else if ( id == "choicesConnectTimeOverTime" ) { choiceContainer = $ ( "#choicesConnectTimeOverTime" ) ; refreshConnectTimeOverTime ( false ) ; } else if ( id == "choicesResponseTimePercentilesOverTime" ) { choiceContainer = $ ( "#choicesResponseTimePercentilesOverTime" ) ; refreshResponseTimePercentilesOverTime ( false ) ; } else if ( id == "choicesResponseTimePercentiles" ) { choiceContainer = $ ( "#choicesResponseTimePercentiles" ) ; refreshResponseTimePercentiles ( ) ; } else if ( id == "choicesActiveThreadsOverTime" ) { choiceContainer = $ ( "#choicesActiveThreadsOverTime" ) ; refreshActiveThreadsOverTime ( false ) ; } else if ( id == "choicesTimeVsThreads" ) { choiceContainer = $ ( "#choicesTimeVsThreads" ) ; refreshTimeVsThreads ( ) ; } else if ( id == "choicesSyntheticResponseTimeDistribution" ) { choiceContainer = $ ( "#choicesSyntheticResponseTimeDistribution" ) ; refreshSyntheticResponseTimeDistribution ( ) ; } else if ( id == "choicesResponseTimeDistribution" ) { choiceContainer = $ ( "#choicesResponseTimeDistribution" ) ; refreshResponseTimeDistribution ( ) ; } else if ( id == "choicesHitsPerSecond" ) { choiceContainer = $ ( "#choicesHitsPerSecond" ) ; refreshHitsPerSecond ( false ) ; } else if ( id == "choicesCodesPerSecond" ) { choiceContainer = $ ( "#choicesCodesPerSecond" ) ; refreshCodesPerSecond ( false ) ; } else if ( id == "choicesTransactionsPerSecond" ) { choiceContainer = $ ( "#choicesTransactionsPerSecond" ) ; refreshTransactionsPerSecond ( false ) ; } else if ( id == "choicesTotalTPS" ) { choiceContainer = $ ( "#choicesTotalTPS" ) ; refreshTotalTPS ( false ) ; } else if ( id == "choicesResponseTimeVsRequest" ) { choiceContainer = $ ( "#choicesResponseTimeVsRequest" ) ; refreshResponseTimeVsRequest ( ) ; } else if ( id == "choicesLatencyVsRequest" ) { choiceContainer = $ ( "#choicesLatencyVsRequest" ) ; refreshLatenciesVsRequest ( ) ; } var color = checked ? "black" : "#818181" ; if ( choiceContainer != null ) { choiceContainer . find ( "label" ) . each ( function ( ) { this . style . color = color ; } ) ; } }
Activates or deactivates all series of the specified graph (represented by id parameter)
 depending on checked argument.
Activates or deactivates all series of the specified graph ( represented by id parameter ) depending on checked argument .