D3js Marker-mid not showing in SafariUsing base tag on a page that contains SVG marker elements fails to render markerd3 javascript click function callIs Safari on iOS 6 caching $.ajax results?$location not working in AngularJS using d3.jshow to format time on xAxis use d3.jsd3js - TypeError: string is undefinedHow to apply a pattern for a D3 bar chart?X & Y Co-ordinates of selective bars in a stack graphD3 JS Displaying Text Next To CircleHow to insert pie charts in Pack Layout in d3.js?

Telling my mother that I have anorexia without panicking her

How do I get rid of distortion in pictures of distant objects photographed with a telephoto lens?

A medieval fantasy adventurer lights a torch in a 100% pure oxygen room. What happens?

Should you only use colons and periods in dialogues?

Has SHA256 been broken by Treadwell Stanton DuPont?

What is a realistic time needed to get a properly trained army?

Does my opponent need to prove his creature has morph?

Should I leave the first authorship of our paper to the student who did the project whereas I solved it?

What jurisdiction do Scottish courts have over the Westminster parliament?

My research paper filed as a patent in China by my Chinese supervisor without me as inventor

Why is this weapon searching for a new owner?

Sol Ⅲ = Earth: What is the origin of this planetary naming scheme?

Does an oscilloscope subtract voltages as phasors?

Why don't Wizards use wrist straps to protect against disarming charms?

Double it your way

Cannot find Database Mail feature in SQL Server Express 2012 SP1

Sort files in a given folders and provide as a list

How do I say "quirky" in German without sounding derogatory?

2000s space film where an alien species has almost wiped out the human race in a war

If I want an interpretable model, are there methods other than Linear Regression?

What hard drive connector is this?

Output a Super Mario Image

Difference in using Lightning Component <lighting:badge/> and Normal DOM with slds <span class="slds-badge"></span>? Which is Better and Why?

Is "you will become a subject matter expert" code for "you'll be working on your own 100% of the time"?



D3js Marker-mid not showing in Safari


Using base tag on a page that contains SVG marker elements fails to render markerd3 javascript click function callIs Safari on iOS 6 caching $.ajax results?$location not working in AngularJS using d3.jshow to format time on xAxis use d3.jsd3js - TypeError: string is undefinedHow to apply a pattern for a D3 bar chart?X & Y Co-ordinates of selective bars in a stack graphD3 JS Displaying Text Next To CircleHow to insert pie charts in Pack Layout in d3.js?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have a force-directed d3js (v3) chart which works fine in IE and Chrome but not in Safari (macOS).



I read other post which describe similar problem in FireFox which was resolved by making the path to the marker absolute vs relative. That solution did not seem to work for me.



Here's the problem child...



http://www.alqemy.com/lab/Data_Quality_Analysis_(node).html



Here is he relevant section of the code...



var marker_radius = 5

var marker_circle = svg.append("defs").selectAll("marker")
.data(["high","med","low"])
.enter().append("marker")
.attr("id", function(d) return d; )
.attr("viewBox", "-25 -25 25 25")
.attr("refX", function(d) return -marker_radius;)
.attr("refY", -marker_radius)
.attr("markerWidth", 30)
.attr("markerHeight", 30)
.append("circle")
.attr("class",function(d)return d )
.attr("r", marker_radius)
.attr("cx",-marker_radius)
.attr("cy",-marker_radius)

path = svg.append("g").selectAll("path")
.data(force.links())
.enter().append("path")
.attr("class", function(d) return d.target.score; )
.attr("marker-mid", function(d) return "url(#"+d.target.score+")"; )









share|improve this question
























  • Look to this answer: stackoverflow.com/questions/18259032/… I believe it can help you. The problem is that the "url(#arrowHead)" cannot be resolved. You need to add window.location before the id.

    – Joseph Katzman
    Jun 10 at 10:12


















0















I have a force-directed d3js (v3) chart which works fine in IE and Chrome but not in Safari (macOS).



I read other post which describe similar problem in FireFox which was resolved by making the path to the marker absolute vs relative. That solution did not seem to work for me.



Here's the problem child...



http://www.alqemy.com/lab/Data_Quality_Analysis_(node).html



Here is he relevant section of the code...



var marker_radius = 5

var marker_circle = svg.append("defs").selectAll("marker")
.data(["high","med","low"])
.enter().append("marker")
.attr("id", function(d) return d; )
.attr("viewBox", "-25 -25 25 25")
.attr("refX", function(d) return -marker_radius;)
.attr("refY", -marker_radius)
.attr("markerWidth", 30)
.attr("markerHeight", 30)
.append("circle")
.attr("class",function(d)return d )
.attr("r", marker_radius)
.attr("cx",-marker_radius)
.attr("cy",-marker_radius)

path = svg.append("g").selectAll("path")
.data(force.links())
.enter().append("path")
.attr("class", function(d) return d.target.score; )
.attr("marker-mid", function(d) return "url(#"+d.target.score+")"; )









share|improve this question
























  • Look to this answer: stackoverflow.com/questions/18259032/… I believe it can help you. The problem is that the "url(#arrowHead)" cannot be resolved. You need to add window.location before the id.

    – Joseph Katzman
    Jun 10 at 10:12














0












0








0








I have a force-directed d3js (v3) chart which works fine in IE and Chrome but not in Safari (macOS).



I read other post which describe similar problem in FireFox which was resolved by making the path to the marker absolute vs relative. That solution did not seem to work for me.



Here's the problem child...



http://www.alqemy.com/lab/Data_Quality_Analysis_(node).html



Here is he relevant section of the code...



var marker_radius = 5

var marker_circle = svg.append("defs").selectAll("marker")
.data(["high","med","low"])
.enter().append("marker")
.attr("id", function(d) return d; )
.attr("viewBox", "-25 -25 25 25")
.attr("refX", function(d) return -marker_radius;)
.attr("refY", -marker_radius)
.attr("markerWidth", 30)
.attr("markerHeight", 30)
.append("circle")
.attr("class",function(d)return d )
.attr("r", marker_radius)
.attr("cx",-marker_radius)
.attr("cy",-marker_radius)

path = svg.append("g").selectAll("path")
.data(force.links())
.enter().append("path")
.attr("class", function(d) return d.target.score; )
.attr("marker-mid", function(d) return "url(#"+d.target.score+")"; )









share|improve this question














I have a force-directed d3js (v3) chart which works fine in IE and Chrome but not in Safari (macOS).



I read other post which describe similar problem in FireFox which was resolved by making the path to the marker absolute vs relative. That solution did not seem to work for me.



Here's the problem child...



http://www.alqemy.com/lab/Data_Quality_Analysis_(node).html



Here is he relevant section of the code...



var marker_radius = 5

var marker_circle = svg.append("defs").selectAll("marker")
.data(["high","med","low"])
.enter().append("marker")
.attr("id", function(d) return d; )
.attr("viewBox", "-25 -25 25 25")
.attr("refX", function(d) return -marker_radius;)
.attr("refY", -marker_radius)
.attr("markerWidth", 30)
.attr("markerHeight", 30)
.append("circle")
.attr("class",function(d)return d )
.attr("r", marker_radius)
.attr("cx",-marker_radius)
.attr("cy",-marker_radius)

path = svg.append("g").selectAll("path")
.data(force.links())
.enter().append("path")
.attr("class", function(d) return d.target.score; )
.attr("marker-mid", function(d) return "url(#"+d.target.score+")"; )






javascript d3.js svg safari






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 28 at 10:29









alQemistalQemist

1272 silver badges10 bronze badges




1272 silver badges10 bronze badges















  • Look to this answer: stackoverflow.com/questions/18259032/… I believe it can help you. The problem is that the "url(#arrowHead)" cannot be resolved. You need to add window.location before the id.

    – Joseph Katzman
    Jun 10 at 10:12


















  • Look to this answer: stackoverflow.com/questions/18259032/… I believe it can help you. The problem is that the "url(#arrowHead)" cannot be resolved. You need to add window.location before the id.

    – Joseph Katzman
    Jun 10 at 10:12

















Look to this answer: stackoverflow.com/questions/18259032/… I believe it can help you. The problem is that the "url(#arrowHead)" cannot be resolved. You need to add window.location before the id.

– Joseph Katzman
Jun 10 at 10:12






Look to this answer: stackoverflow.com/questions/18259032/… I believe it can help you. The problem is that the "url(#arrowHead)" cannot be resolved. You need to add window.location before the id.

– Joseph Katzman
Jun 10 at 10:12













0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55395340%2fd3js-marker-mid-not-showing-in-safari%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.




















draft saved

draft discarded















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55395340%2fd3js-marker-mid-not-showing-in-safari%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript