NVD3.js Get Data Point's Screen Position Within SVG Chart
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using the nvd3.js line with focus chart ( view finder ) model for a project. There are customizations that i need to add to this example -- such as different types of annotation overlays on top of the graph. There's a couple ways i can see tackling this: 1. I could extend the nvd3 chart models to create one that does what i need ( that seems like a lot of work at the moment ) 2. I can find the right interfaces in the existing nvd3 chart models and write my own d3 stuff to create annotations ( this seemed easier, and so i went down this