简体   繁体   中英

Putting images as axis ticks in d3.js

is it possible to put images as axis ticks using d3.js javascript library? I am trying to visualize a simple bar graph (done!) but in the x-axis I need to show a different image for each bar.

It is possible. The way to think about this is using d3 to position images on a page.

If you have each image in a div with it's own id then you can use d3 to select and position those divs. I found this tutorial very helpful.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM