javascript - Draw sprites from JPG with D3.js -


I have a scattered plot chart that contains several hundred digits, each dot image shows the coordinates as well as the image File names are loaded through AJAX. It serves as a purpose, but from this perspective each single image is loaded by itself, resulting in several hundred requests. This is the code that I am using right now and it is working fine:

  function state (dot) {dot .attr ("x", function (d) {return dx ;}; Etr ("y", function (d) {return dei;}) .attr ("width", function (d) {return dR * 5;}) .attr ("height", function (d) { Returns D * 10;}) .attr ("xlink: href", function (d) {return d. Jeseph file}); }  

So, to speed things up, I'm dynamically creating a phantom image file on the server, it also works well but I can not know that How to load the phantom and use the single pictures inside that phantom. I came in clippath , but I'm clearly using it incorrectly:

  function status (dot) {dot .attr ("x" , Function (d) {return dx;}) .attr ("y", function (d) {return dy;}) .attr ("width", function (d) {return dr * 5;}) .attr ( "Height", function (D) {return dr * 10;}) .attr ("clippath", function (d) {return di * 140 + "0 140 200";}) .attr ("xlink: href" Function (d) {return 'MySprite.jpg';}); }  

So, how can I use a dynamically created phantom image on the server within my D3.js code?

My overall code is based on some examples of this example:


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -