Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create Normal Distribution (Bell Curve) chart using FLOT

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.

like image 924
developer Avatar asked Oct 27 '11 02:10

developer


People also ask

How do you draw a bell curve in a normal distribution?

Sketch a picture of a normal distribution. Begin by drawing a horizontal line (axis). Next, draw a normal (bell-shaped) curve centered on the horizontal axis. Then draw a vertical line from the horizontal axis through the center of the curve, cutting it in half.


1 Answers

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.

like image 120
Mark Avatar answered Sep 28 '22 02:09

Mark