1

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

Community
  • 1
  • 1
Aakash
  • 179
  • 1
  • 1
  • 11

1 Answers1

1

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" });
}
Community
  • 1
  • 1
Raidri
  • 17,258
  • 9
  • 62
  • 65
  • @Raidri- it helped. Here's a fiddle to have it compare a specific marking with rest bell curve datapoints. http://jsfiddle.net/Lsm1086m/1/ – Aakash Oct 22 '15 at 07:37