All Questions
15
questions
1
vote
1
answer
49
views
Correct tileable pattern at D3.JS / SVG
Having an random set of paths with different dimensions. The task is to set a uniform even pattern on them. By now, it's looks like:
Needs to be
I have played with different preserveAspectRatio ...
0
votes
1
answer
122
views
d3 hover text to clippath
I'm trying to add a tooltip on hover to a clip-path [this is my first time using clippath... is that even the right verbiage?]... I think I'm really close [the circle that should follow the line shows ...
3
votes
1
answer
239
views
Get Clipped Line Visible Area Length d3
I'm trying to clip a line with circle using ClipPath and successfully done it with dragging as well. Here is my working Code;
function clipData(svg, cx, cy) {
var clip = svg.append("defs")
...
1
vote
1
answer
1k
views
How can I apply a clipPath in SVG with multiple paths and NOT clip out the area between the paths?
I have an SVG clipPath made of multiple path elements, which I need to apply to a group of elements. I only want to clip out the area under the path stroke itself, not in between the paths. (example ...
1
vote
0
answers
216
views
d3 topojson clip-path issue
I am having issues with rendering a USA map that I put inside of a clipPath element (in order to make everything outside of the USA invisible). The clipping works correctly; however, the svg path that ...
2
votes
1
answer
1k
views
d3 rotating wheel with fixed clip
I am trying to "clip" this spinning wheel: https://bl.ocks.org/mpmckenna8/7f1f0adbf7d9ed7520b3950103e8094c
I want to only make the top-half of the wheel visible. When I try to do this with "clip-path"...
1
vote
1
answer
2k
views
Clip path for animated line and circle in d3 js
How to clip animated line and circle along with the path?
For this example, I have tried to clip the circle and points also.
I have added the following code:
svg.append("defs")
.append("...
1
vote
0
answers
530
views
Clip path on d3 area not working in React.js
I have the following in a graph component in react:
constructor(props) {
super(props);
this.state = {
activeIndex: 9
};
this.margin = {
top: 10,
...
0
votes
1
answer
903
views
D3js axis clipping not working with g element
This adds a circle, assigns the clip path:
focus.selectAll("circle")
.data(data).enter().append("circle")
.attr("clip-path", "url('#clip')")
.attr("class","dot")
.attr("r", 4.5)
.attr("...
4
votes
2
answers
1k
views
How to modify a d3 force layout with voronoi polygons to trigger events on grouped elements?
The goal is to combine d3 force simulation, g elements, and voronoi polygons to make trigger events on nodes easier, such as dragging, mouseovers, tooltips and so on with a graph that can be ...
1
vote
1
answer
1k
views
d3.symbols being cut off by ClipPath area
Still in the process of improving my competence about D3, I got stuck with a problem where I'm trying to plot a zoomable curve in a SVG element with margins (so that I need a clipPath rect to avoid ...
11
votes
2
answers
3k
views
d3.js brush fill color histogram
i have created some histogram with d3.js.
I managed to change fill color of rect depending on the position of the brush.
But i would like to change the color inside a rect. For example if the brush ...
0
votes
0
answers
52
views
Clip path is not working with svg and d3 [duplicate]
I am trying to make a scatter plot with. Zooming seems to work but the dots spreading off the axis is something that I don't want. I have Googled for a while and could not solve my problem. I have ...
2
votes
1
answer
625
views
D3 Clippath Mouseover event not working
wizards,
I'm having some trouble with a mouseover event on clippath. For some reason it is not triggering and I think it's due to the fact that the elements are clipping an image of the Dude.
My ...
0
votes
1
answer
289
views
d3 svg clippath with path
Trying to use a complex clippath derived from a path to cut a circle in an svg drawing. It works when I use a shape, but not the path.
I'm wondering if it is because the path is pre-designed ...