mouseover: show picture on center circle at the same

19 views
Skip to first unread message

Jolanta Paliszewska

unread,
Jan 29, 2018, 11:37:38 AM1/29/18
to d3-js

I would like to insert that it should be to show data on mouseover of circle with pictures from the file. How can I load an image from a JSON array in this script? How I can add the pictures.




var data = [
{
 
"str_lab": A“,
 
"num": 300,
image: graphics/a.svg"
},
{
 "
str_lab": „B“,
 "
num": 44,
„image: “graphics/b.svg"


},
{
 
"str_lab": C“,
 
"num": 215,
image: graphics/c.svg"
},
{
 "
str_lab": „D“,
 "
num": 30,
„image: “graphics/d.svg"

} ];



Code:
https://plnkr.co/edit/sSITuaI2ErWJjdlDbQIQ?p=preview








Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages