I have this fiddle : https://jsfiddle.net/thatOneGuy/1spn8nne/1/
This has two paths, for now, they are just rect but are actually complicated shape. I have used this code to create two rects with 'holes' in :
createRects(dataPointsPath2, 'blue');
createHoles(dataPointsCircle2);
createRects(dataPointsPath1, 'red');
createHoles(dataPointsCircle1);
What I need are the holes to be removed from the filled path so you can see the rect behind it.
How do I go about removing a shape (circle) from a filled path ?
EDIT
I have just realised, a clip path will probably work well for this, I'll try implement but if someone has any ideas I'd appreciate the help :)