d3-shape icon indicating copy to clipboard operation
d3-shape copied to clipboard

Graphical primitives for visualization, such as lines and areas.

Results 20 d3-shape issues
Sort by recently updated
recently updated
newest added

This little snippet appears in calendar view visualizations, but I don't believe it's part of D3 itself. ```js function pathMonth(t) { const n = weekday === "weekday" ? 5 :...

In working with discrete-time and discrete-level data, I find that the risers in the data can end up being visually deceptive, especially where there is a single-level change involved. Use...

Hi, I would love to see the ability to round only specific corners in an arc. Right now, I know we have the ability to round all corners using `cornerRadius`,...

From d3/d3#2864 by @lgrkvst, it might be nice to support a radius for rounded corners on d3.curveStep and related curves. Example: ![image](https://cloud.githubusercontent.com/assets/230541/16349652/d32316d6-3a0e-11e6-9974-be01c67b863d.png) The radius would probably need to be constant...

_Issue was originally in [d3-interpolate#49](https://github.com/d3/d3-interpolate/issues/49)_ I'm proposing the addition of a new type of curve for d3-shape — aptly called _curveCubicX_ by @mbostock on the original thread — that treats...

It’d be nice to have something like curveStep for radial plots, and it’s much simpler than implementing Archimedean spirals as we would need for curveLinearRadial.

Creating stacked area chart with `.curve(d3.curveLinear)` produced correct interpolation: ![image](https://cloud.githubusercontent.com/assets/890700/18718743/3666e4f2-802d-11e6-9b55-42f28249be4d.png) Creating the same chart with `.curve(d3.curveMonotoneX)` produced strange convexity for the highest area (between 3 and 2 points (X) from...

Useful for drawing a halo around an area that uses d3.curveStepAfter: ``` js function curveStepOutside(context) { var y0, i; return { lineStart: function() { y0 = NaN, i = 0;...

From d3/d3#2832: if the _y_-value is NaN, we can still extend the line using the previous _x_-value. But we’d have to make sure that it’s symmetric for _x_ and _y_...