Gauge chart using D3

陌路散爱 提交于 2019-12-08 03:50:36

问题


I've been trying to build a gauge using d3 and ive managed to hack up something that meets the visual requirements http://bl.ocks.org/ameyms/9140907

This is however a very very hacky solution since ive positioned the needle by trial and error and the whole thing breaks if height and width are assigned percentage values. So how do I position it?

Also, how I can make the needle rotate?

Any ideas?


回答1:


For anyone coming here looking for answers, I have created a demo of gauge using D3 here



来源:https://stackoverflow.com/questions/21943194/gauge-chart-using-d3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!