score:2
Accepted answer
I've found a better solution.
Instead of playing with the scale
attribute I've added
.attr("d", pathArc.innerRadius(60 * ((i*0.1) + 1)), pathArc.outerRadius(60 * ((i*0.1) + 1) + 10))
to the return of the arcFunction
.
See the modified jsfiddle
https://jsfiddle.net/szada3/tu6d7wzc/13/
Result:
score:1
Manipulate with i
in arcFunction
and arcFunction2
:
.attr("transform", "scale(1." + i*3 + ")");
score:1
You have to change the scaling in arcFunction
to add some space between the rings (just be careful that (i+5) < 10
)
.attr("transform", "scale(1." + (i+5) + ")");
You should also change the size of the ring like that :
.outerRadius((width + 200) / 5 + 2);
Source: stackoverflow.com
Related Query
- Increase space between rings in D3 ring chart
- How to add space between bars in a grouped bar chart in a nvd3 grouped multibar chart?
- How to increase the space between axis and axis label?
- Vega-lite bar chart space between bars
- Increase spacing/padding between each nodes in D3 Collapsible tree chart to avoid node and text overlaping
- D3js increase space between X axis
- How can I put a space between the lines of a line chart using d3.js
- Highlighting individual rings in ring chart
- Nvd3: How prevent to display chart between -1 and 1 if have all y values 0?
- How to increase distance between child nodes in a D3 Collapsible Tree?
- Space out part of the pie chart in d3?
- D3 put arc labels in a Pie Chart if there is enough space
- D3 Circular Heat Chart increase segment height on mouseover
- Unneeded white space before the 1st bar in D3 bar chart
- D3 Chart- place space between tick values and axis path lines
- Donut chart with partial ring around
- Unneeded white space before the 1st bar in D3 Stack chart
- Onion Ring Chart with nested elements
- Increase Distance Between Nodes in Network/Chart
- D3 how to draw chart with a x data between two y data
- Dimple.js line chart with composite axis, no links between points on series
- D3: Sunburst chart with root node on the outside ring
- Considerable difference between Firefox and IE displaying plot line chart
- How do I calculate pairs of Bezier S-curves such that the space between them has constant thickness?
- dc.js month chart uneven spacing between bars
- How can we add the space between bars for multiple groups of bars in c3js?
- Equal Space between the legends in d3
- nvd3 space between bars
- d3.js concentric ring chart
- Changing a pie chart into an arrow ring chart
More Query from same tag
- d3.js d3.xhr(rpcUrl).post appears to be failing to pass json data object
- D3.js: how to restrict dragging of x-axis in a grouped bar chart
- d3 version 4 rescaleX where X scale is scaleTime
- Move selected element to the end
- How to style using d3's .style() method instead of using CSS in style tags for .axis path {}?
- Prevent the y-axis in a d3 line graph from going below 0 on drag
- path not drawn in d3 stacked area chart
- d3js: make new parent data descend into child nodes
- D3JS .call() Exception
- How to graph dates on X axis while skipping weekends d3.js?
- X-Axis Date Formatting in Rickshaw
- D3.v4 force graph breaks when using module bundling vs. complete D3 bundle
- Dynamically changing the number of ticks in D3
- How to get d3 to recognize push+shift as an add-new-object-to-end and remove-old-object-from-beginning, rather than as just a data change in place
- d3 chart refresh duplicate
- Insert D3 Graph into a div in CMS
- Add legend to colored worldmap
- Set a threshold for each point
- making xaxis values selectable in a d3js code
- Iterating through multi-dimensional arrays with d3.js
- Capturing/Saving the current state of d3.js Sunburst Chart
- getting json data with d3.json() from php not working
- How to display D3 Chart using directive?
- Change style on points, d3
- D3 Object Constancy not working with key function. Enter and Update contain all elements every time
- What do sub-transitions inherit?
- D3.js dynamically switching between number and dollar formats on tick marks
- Reading JSON data into the correct data structure
- d3 table append data according to different data types
- d3.request generates unauthorized error