score:0
yes, you can do this quite easily. assuming that the variable value
holds the name of the dataset, you can do
var dataset = data[value];
Source: stackoverflow.com
Related Query
- How do I update a D3 SVG chart based on user input
- Update bar chart in d3 based on user input
- Using Django, AJAX and JSONs to update charts based on user input
- How to update the existing nodes attributes of a d3js tree, based on an input value from a search box?
- d3js - How to update an existing svg path in a simple d3 line chart with new data flowing through?
- How to update an svg path with d3.js
- How to update d3.js bar chart with new data
- How can I dynamically resize an SVG rect based on text width?
- How to update the fill color on existing svg elements with d3.js?
- Continuously updating lines in a d3 chart based on SignalR input
- How to create SVG elements of different types based on data?
- How to Update bubble chart in d3.js?
- How to make label in histogram respond to dynamic user input
- How do I implement d3's enter update exit pattern for an area chart with focus and context?
- How to update data in stack bar chart in D3
- How to center title over SVG chart with d3.js?
- How to update the contents of a text input with d3?
- How to draw a dynamic line chart based on an infotable?
- How to create SVG shapes based on data?
- How to correctly update the text value of an input element in a d3.js transition
- How to color SVG image based on value from color range using d3?
- Using D3 to generate SVG Pie Chart how to vertically align text
- D3 How to update the chart after selection from drop down menu with new data
- How can I update a form input type=Range with my transition's progress?
- How to add svg rectangles as background behind axis tick labels in d3js if ticks are inside chart
- How to update projection after copying a d3, svg map
- how to show bar chart based on multiple filter values in D3 js
- How to update all data representing an SVG line using d3?
- How to update data by visually manipulating a chart
- How do you update an existing svg element with the d3v5 join syntax
More Query from same tag
- D3.js Bar graph not displaying properly?
- D3.symbol in the corner of the screen. I would like to move it
- D3 add stroke to the side of a path only
- d3 tickFormat error - converting v3 to v4
- How do you stack svgs on top of each other that are generated from a for loop using javascript?
- d3.js Zoom & Pan Timeline - How to Show Dynamic Timeline Range?
- d3js Force Directed Graph - Click on node to popup infobox which read from JSON
- dc.js Scatter Plot with multiple values for a single key
- Restrict line chart zoom in upto hours in dc chart library
- Breaking text from json into several lines for displaying labels in a D3 force layout
- D3: how to create a bar chart by row with a csv file
- Update X-axis via zoom scale
- D3 dynamic json key names
- D3.js with Total.js/node.js
- D3 force layout data doesn't update
- Svelte / D3 Function to get Point on a Path
- How to show ticks each 1.5 on D3.js?
- D3 is giving me a syntax error with d3.selectAll()
- bar chart in d3 using mysql database
- Grouping nested arrays by inner index in D3.js
- This Search Collapsible Tree code doesn't work when I run it on my PC?
- show checkbox inside node while hovering on that node
- D3 Sunburst: Determine Leaf Color by Data and have its Parents Inherit that Color
- d3.js nodes and edges format
- D3 Force Layout: Collapse Subset of Child Nodes (Opacity Change)
- d3.js - Circle added to the mouse move is not visible
- Interactions that affect multiple separate charts in d3.js?
- d3.js multiple line chart rendering: Same dataset but different curve
- How do I format an integer as a time using D3.js or nvD3.js
- Understanding how D3.js binds data to nodes