nvd3.js - Bigger points in a line chart

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 07:39:11

问题


I am searching how to show bigger points in a line chart using nvd3.js, but I haven't found anything. Anybody can give me a hand?

I want the points to be easily visible across the chart lines.

Thanks.


回答1:


After looking through the output generated in the simple line chart, you could add this CSS, to make all points visible:

.nvd3 .nv-groups .nv-point {
    stroke-opacity: 0.5 !important;
    stroke-width: 10px;
}

This is, however, more like a hack. There should be better solutions around. If you want to modify more details, it may also be better to switch to d3.js directly instead of using a wrapper.



来源:https://stackoverflow.com/questions/18530459/nvd3-js-bigger-points-in-a-line-chart

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