nvd3.js - 折线图中的较大点 [英] nvd3.js - Bigger points in a line chart

查看:124
本文介绍了nvd3.js - 折线图中的较大点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在搜索如何使用nvd3.js在折线图中显示更大的点,但我还没有找到任何东西。有人可以帮忙吗?

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.

谢谢。

推荐答案

查看简单折线图中生成的输出后,可以添加此CSS,使所有点都可见:

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;
}

然而,这更像是一个黑客攻击。应该有更好的解决方案。如果你想修改更多细节,最好直接切换到d3.js而不是使用包装器。

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.

这篇关于nvd3.js - 折线图中的较大点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆