Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经从下面的链接实现了一个钟形曲线: 使用 FLOT 创建正态分布(钟形曲线)图表
如何将线条放在贝尔曲线上,如图所示:
根据您链接的问题中的评论,您可以使用标记来实现这一点(请参阅this fiddle):
相关代码:
var markings = []; for (var i= -2; i <= 2; i+= 1) { markings.push({ xaxis: { from: i, to: i }, yaxis: { from: 0, to: NormalDensityZx(i,0,1) }, color: "#bb0000" }); }