在同一 chart/graph 中具有累积 frequency/distribution 行的 d3 直方图?
d3 histogram with cumulative frequency/distribution line in the same chart/graph?
d3 非常酷,作为新手我才刚刚开始使用它。直方图有几个示例,我根据直方图确定了 this one. And I did a brief search for cumulative line chart, cumulative distribution, and cumulative frequency, all with respect to d3 but didn't find anything like what I was looking for, but the closest I came to was this, and in light of a better solution, I will try to pursue that and see if I can customize it for my needs. Ideally though, I'm looking for something akin to what Excel offers,累积 frequency/distribution 线覆盖在顶部(其 axis/label 是右侧的 y 轴)。 d3 是否有这样的等效功能(理想情况下可以作为 example/demo 来使用)?这样我就有了 1 个图表而不是 2 个。
如果没有现成的 examples/demo,有什么技巧可以扩展我选择的直方图实现,在同一图表上使用累积频率线,并在右侧添加轴标签?由于我是新手,所以hard/tricky我自己想办法。
this example be close to what you are looking for? D3 has a histogram layout 会为您做大量的计算工作,并且可以像任何其他条形图一样绘制。只需汇总计数数据即可创建 CDF。
d3 非常酷,作为新手我才刚刚开始使用它。直方图有几个示例,我根据直方图确定了 this one. And I did a brief search for cumulative line chart, cumulative distribution, and cumulative frequency, all with respect to d3 but didn't find anything like what I was looking for, but the closest I came to was this, and in light of a better solution, I will try to pursue that and see if I can customize it for my needs. Ideally though, I'm looking for something akin to what Excel offers,累积 frequency/distribution 线覆盖在顶部(其 axis/label 是右侧的 y 轴)。 d3 是否有这样的等效功能(理想情况下可以作为 example/demo 来使用)?这样我就有了 1 个图表而不是 2 个。
如果没有现成的 examples/demo,有什么技巧可以扩展我选择的直方图实现,在同一图表上使用累积频率线,并在右侧添加轴标签?由于我是新手,所以hard/tricky我自己想办法。
this example be close to what you are looking for? D3 has a histogram layout 会为您做大量的计算工作,并且可以像任何其他条形图一样绘制。只需汇总计数数据即可创建 CDF。