score:1
without seeing your code, i can only offer a very vague direction:
you may need a function that gets called, each time the viewer change sorting option. inside the function, you will need to specify different accessor:
var update = function(_value){
data.sort(function(a, b) { return b._value - a._value; })
// add transition with the newly sorted data
}
Source: stackoverflow.com
Related Query
- Interactive sorting of grouped bar chart in D3js
- d3js grouped bar chart toggling legend
- d3js v5 Resize Grouped Bar Chart
- d3.js interactive grouped bar chart alternating rotation
- How to reduce rect size in a grouped bar chart d3js v4
- Sorting the bars and getting the group data in a grouped bar chart
- Sorting function issue with grouped bar chart
- text labels are wrong in grouped bar chart d3js
- D3js labels on grouped bar chart
- D3js v5 grouped bar chart data x.domain labels and data separated
- Sorting a stacked bar chart d3js
- sorting d3js bar chart
- Sorting Horizontal Bar Chart D3js
- D3js - change Vertical bar chart to Horizontal bar chart
- d3 accessing nested data in grouped bar chart
- Adding Error Bars to Grouped Bar Chart with D3.js
- D3 brushing on grouped bar chart
- Making a grouped bar chart using d3.js
- Making a grouped bar chart when my groups are varied sizes?
- How to add space between bars in a grouped bar chart in a nvd3 grouped multibar chart?
- D3: Create a grouped bar chart from json objects
- in d3js bar chart i want to have fixed bar width
- d3js Create legend for bar chart
- d3 nested grouped bar chart
- Sorting the bars in a bar chart with dc.js
- Sorting a d3.js stacked bar chart
- NVD3.js: Stacked and grouped bar chart with two y-axis
- x axis labels overlapping for grouped category bar chart in d3
- D3.js : How to read data from JSON in Grouped Bar Chart
- d3js mask to show dots over bar chart
More Query from same tag
- d3 retrieve and add to current selection's attribute value
- d3> How can I append only new circles without recycling previous circles?
- Set dynamic regions for each y axis group
- Data visualisation using pymongo, mongodb, keen, crossfilter, d3 and dc
- Paint the apartment and the town of different colors in d3.js
- How to decide dimensions and groups in dc.js?
- Calling d3.mouse on svg.node() after a timeout
- D3.js Tree - Check and set fill circle node white if no children?
- D3, Flask, Pythonanywhere, problems with csv files
- Delete/Change labels in Force Directed Graph
- removing parent after child transition ends in D3.js
- D3 updates every path only when select() is running instead of selectAll()
- D3v4 graph class, trouble adding nodes
- How can i bind an json data with a key and Name for display
- how do i implement brush.move in d3 v3
- How to change D3.js graph from SVG to canvas?
- d3js: zooming when there are two y axes
- How to Scale/Choose D3 Projection Settings from .shp File
- collapsible trees in typescript and d3 version v3
- d3 drag behavior: registering, listening, and triggering distinct types in the drag namespace?
- ExtJS application build fails: ReferenceError: d3 is not defined
- B (billions) instead of G (giga) in python plotly customdata [SI prefix d3]
- I want to run d3 from a Cakefile
- D3 dynamically vertically align text
- D3js: When to use .datum() and .data()?
- How do I make a D3.js donut chart (aster plot) animate on page load with transition
- How do I influence link distance in 3d-force-graph?
- How to add tooltips in a D3 donut chart
- D3 nest formatting date incorrectly
- Change the x axis width dynamically