New viz: box plot (#312)

* add box plot

* changes for linters
This commit is contained in:
andrewhn
2016-04-11 09:15:25 +10:00
committed by Maxime Beauchemin
parent dab31eb66d
commit fe045ad076
5 changed files with 142 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ var sourceMap = {
markup: 'markup.js',
para: 'parallel_coordinates.js',
pie: 'nvd3_vis.js',
box_plot: 'nvd3_vis.js',
pivot_table: 'pivot_table.js',
sankey: 'sankey.js',
sunburst: 'sunburst.js',
@@ -45,6 +46,7 @@ var color = function () {
// Color factory
var seen = {};
return function (s) {
if (!s) { return; }
// next line is for caravel series that should have the same color
s = s.replace('---', '');
if (seen[s] === undefined) {