Skip to content

considering shuffle: function as an element in the array (fixed) #7

@crollioac

Description

@crollioac

for(var val in legendArr){

        if(val != "shuffle"){
            legend += "<div id='legend"+legendArr[val][3]+"' style='overflow: hidden; zoom: 1;'>";
            legend += "<div class='legendBar"+legendArr[val][2]+"' id='legendColor"+legendArr[val][3]+"' style='background-color:"+legendArr[val][0]+"'></div>";
            legend += "<div class='legendLabel"+legendArr[val][2]+"' id='graphLabel"+unique+"'>"+legendArr[val][1]+"</div>";
            legend += "</div>";         
    }
}

add an if statement which checks for the [shuffle: function] in an array.

and also in loop
for(var val in data){ } at line 118.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions