score:1
Your code is iterating over the breaks
array and setting the discontinuityProvider
property on each iteration. Each time you set this property, you override the previous value!
The solution is to provide multiple 'breaks' directly to the discontinuity provider:
const scale = fc.scaleDiscontinuous(d3.scaleLinear());
.discontinuityProvider(fc.discontinuityRange([10,20], [50,80]))
.domain([ 100, 0])
.range([content_width,0]);
Source: stackoverflow.com
Related Query
- d3fc/d3.js How to stack multiple discontinuities
- How to set multiple attributes with one value function?
- How to select multiple selectors with selectAll?
- How to use D3 selectAll with multiple class names
- D3.js How to apply multiple classes when using a function
- How to register multiple external listeners to the same selection in d3?
- How to have multiple d3 window resize events
- How to fill inner area between multiple SVG paths?
- How to make the scale to round to the nearest multiple of #?
- how to stack series in nvd3 multibar angularjs directive
- How to group by multiple keys at the same time using D3?
- How do I process data that is nested multiple levels in D3?
- How To Move (Drag and Drop) multiple Shapes with D3
- How to draw multiple self-edges in a node-link diagram in D3
- How can D3 select multiple shapes with shared attributes from a group?
- How can I make convex hulls of multiple group network nodes in D3.js
- D3 - How to bind the same data to multiple object?
- How to create slow simultaneous transitions of multiple attributes in force directed graphs?
- In D3, how can I create multiple elements for each data element based on value in data?
- How to append multiple rectangles in D3?
- How do I use d3.domain to get d3.min and d3.max from multiple columns in a JSON file?
- D3: How to draw multiple Convex hulls on Groups of Force layout nodes?
- How do I add a transition delay between multiple individual transitioning polygons in D3?
- How to update data in stack bar chart in D3
- dc.js - how to create a row chart from multiple columns
- How to display a legend in Plottable.js multiple plot
- How to create Stacked Line Chart D3, Multiple Y Axis and common X Axis
- How to append multiple items to a force simulation node?
- How to update multiple elements for each data
- How to draw multiple d3js zoomable treemap
More Query from same tag
- topojson.feature with topojson v2
- How to skip x axis labels in d3.js chart dynamically to have always a pretty chart?
- Time.Scale and RangeBand in Barchart with D3
- Creating a flexible bar chart with a complex dataset using D3
- How to position nodes Force Directed Graph D3 with CSS?
- NVD3.js (d3.js) Scale Break
- Rollup js: how to make a closure like d3?
- How can I get a SVG path shape to scale on zoom in D3?
- How to get JSON key for d3.js chart
- Error: <circle> attribute cx: Expected length, "NaN" and Error: <circle> attribute cy: Expected length, "NaN"
- D3: Spiral plot
- D3.js: Hover over animation map
- Reload d3.js graph on node click
- How to use .each in d3?
- d3.js v5 mixed baseline tspans
- Creating a circle chart in D3?
- In D3 How to enable mouse over event for current particular path?
- nvd3 multibar chart with stacked option the bars are not appearing properly
- Making a scrollable tooltip in d3 pie chart
- angularjs url together with django framework
- d3 Exit / Update function in animation
- D3.js Bar Chart
- How to remove selected item from a list in d3
- d3 tickFormat error - converting v3 to v4
- How should i use nested data in d3js
- D3: Data join for population pyramid
- d3.max returns different values for tsv and json (same content)
- How to render object data in D3?
- Javascript D3 How to access and manipulate dataset from CSV
- How to modify and copy observablehq zoomable sunburst to a local machine and run?