bell curve using flot

417 views Asked by At

I have implemented a bell curve from the below link : Create Normal Distribution (Bell Curve) chart using FLOT

How to put the Lines on the Bell curve like the image : enter image description here

1

There are 1 answers

1
Raidri On BEST ANSWER

Based on a comment in the question you linked, you can use markings to achieve this (see this fiddle):

bell curve with markings

The relevant code:

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