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"; })
}
}
Source: stackoverflow.com
Related Query
- Filtering in JavaScript with radio button using D3 library
- Filtering data with radio button (animated map)
- use any curve to connect two certain points with certain link length using javascript of its library such as d3
- Putting an arrow (marker) at specific point on a path when using the d3 javascript library
- get value of checked radio button using d3.js
- Using D3.js with a javascript object instead of an external JSON file
- Are javascript chart library customizable or compatible with JavaFX
- Toggle between selected radio button using D3
- How do I style a Javascript button using d3?
- Issue with using browserify to bundle D3 library
- Javascript error "Unexpected strict mode reserved word" while using d3.js with apache codrova
- Javascript summing arrays with using d3.nest()
- Darken the color of svg element each time on button click using D3 V3 or JavaScript
- Animating SVG group object using the JavaScript library
- Combine multiple csv files in javascript using filtering
- Exporting svg to png or other image with styling, using JavaScript
- radio button in conjunction with c3 does not show text
- flattened json file using javascript / coffee with d3.json
- NVD3 JavaScript charting - lineChart with duplicate right hand y-axis using 1 or more series
- Grouping Nodes with Radio Button
- Filtering nodes and its corresponding edges in D3js using javascript
- Dynamic filtering with D3 Library
- Circles on svg wont tween correctly using D3 javascript library
- Using Javascript function with WT(Witty).
- Apache Tomcat and Spring MVC working with javascript library on a view
- Appending an DOM/SVG element with the d3 javascript library changes variable reference/scope, why?
- Creating a bar chart based on number or rows over 100k using javascript with d3?
- Appending and Using JSON files with Javascript code on Ruby on Rails Pages
- How to append element to div with id using d3js javascript
- Change format and data of datetime X-axis in a line chart with d3 Javascript library
More Query from same tag
- SOLVE: C3 - Labels not showing in C3 pie chart whit narrow arcs
- Why is rendering this SVG map crashing my browser?
- d3js append circle shape on line element in Force directed graph?
- Capturing/Saving the current state of d3.js Sunburst Chart
- D3 select: submit form dynamically?
- d3.csv.parseRows and d3.csv output different results
- How to save the result of d3.csv.parse to a global variable?
- D3: What projection am I using? / How to simplify with a null projection?
- Hitting browser "back" button shows JSON rather than HTML (using Rails & d3.js)
- How to select elements in a forEach loop? D3
- d3 version 4 workaround for drag origin
- How to change the label of x axis in D3
- D3 Image SVG not showing
- D3 Tooltip on small multiples
- Can I update DOM elements in a D3 selector based on a data join to a different data object?
- Grouping Circles and Path as a node in D3 Force Layout?
- How does this moving average functions work?
- How to show only filtered entries dc.js?
- Duration in d3 animation
- What does d3.select(this) return?
- D3.js enable/disable dragging programmatically
- Map zoom and pan in d3 js v4 + scale limit
- d3.js x3dom: How to freeze camera position and get an axis?
- Convert spreadsheet to nested dictionary form for D3
- Appending SVG Elements in D3
- d3.js how to get minimum value of scale's domain when using nice()
- How can I change the colors of the NVD3 Pie Chart
- D3.js grid and tick issue
- How to create left axis with variable tick interval in tick values and has same distance between tick value
- JavaScript ensure all numbers are unique and if not plus one (or more)