Create Normal Distribution (Bell Curve) chart using FLOT

developer picture developer · Oct 27, 2011 · Viewed 7.3k times · Source

Has anyone tried creating Normal Distribution chart using FLOT?

If so, can you please put me in a right direction with some suggestions and links to tutorial?

Thanks.

Answer

Mark picture Mark · Oct 28, 2011

FLOT is simply a plotting engine. If you want to create a Bell Curve, you need to feed a probability density function a series of x values and plot the resulting points.

For instance I used the functions from here to create this:

enter image description here

Here's the jsFiddle that shows my work.