0

I'm trying to get a box plot going where my Y axis is going to be Dates. I have tried to strip down to the bare minimum and I only see "No Data Available".

Here is the plunker

$scope.data = [{
                   label: "Sample A",
                   values: {
                      Q1: new Date(),
                      Q2: new Date()
                   }
                 },
               ];

I just want to see some Dates and I can go forward from there.

Thanks!

Mohamed NAOUALI
  • 2,092
  • 1
  • 23
  • 29
icedek
  • 574
  • 2
  • 13
  • 31

1 Answers1

0

You have to specify Q3 too.

$scope.data = [{
     label: "Sample A",
     values: {
         Q1: new Date(),
         Q2: new Date(),
         Q3: new Date()
     }
}];

It's because nvd3 boxplot use the first quartile, the mediam (Q2), and the third quartile.

Here is a working example

Mohamed NAOUALI
  • 2,092
  • 1
  • 23
  • 29
Damien Fayol
  • 958
  • 7
  • 17
  • So we are forced to only use "Q1","Q2" and "Q3"? It wont work if I replace it with "A", "B","C" – icedek Feb 18 '16 at 16:14