score:0

Accepted answer

i solved it, here is my code:

open<input type="radio" name="status" id="radio-open" value="open" onclick="window.location.reload()" />
    closed<input type="radio" name="status" id="radio-closed" value="closed" onclick="window.location.reload()"/>
    clear<input type="radio" name="status" id="radio-clear" value="clear" onclick="window.location.reload()"/>

and:

  if (!document.getelementbyid('radio-clear').checked) {
    if (document.getelementbyid('radio-open').checked) {
      data = data.filter(function(d) { return d["status"] == "open"; })
    }
    else if (document.getelementbyid('radio-closed').checked) {
      data = data.filter(function(d) { return d["status"] == "closed"; })
    }

}


Related Query

More Query from same tag