-
- Numeric
-
-
-
- Boolean with NA
-
-
-
- NA Only
-
-
-
- Simple Categorical
-
-
-
-
- Categorical unique NA
-
-
-
- Categorical_longtail
-
-
+const CategoricalUniqueNA = () => {
+ const histo = [
+ {name: 'KTM', cat_pop: 30},
+ {name: 'Gas Gas', cat_pop: 15},
+ {name: 'Yamaha', cat_pop: 10},
+ {name: 'unique', unique: 25},
+ {name: 'NA', NA: 20}
+ ];
-
- Categorical All unique
-
-
+ return (
+
+ Categorical Unique NA
+
+
+ );
+};
-
- Categorical Unique with NA
-
-
+const CategoricalLongtail = () => {
+ const histo = [
+ {name: 'KTM', cat_pop: 25},
+ {name: 'Gas Gas', cat_pop: 12},
+ {name: 'Yamaha', cat_pop: 8},
+ {name: 'NA', NA: 20},
+ // notice that longtail has a unique and longtail value causing the bars to be stacked
+ {name: 'longtail', unique: 15, longtail: 20}
+ ];
-
- Numeric all Unique
-
-
-
- start station categorical
-
-
-
+ return (
+
+ Categorical Long Tail
+
+
+ );
+};
-
- Numeric 50% unique
-
-
-
+const NumericWithUnique = () => {
+ const histo = [
+ {name: '-406 -332', population: 0},
+ {name: '-332 -258', population: 0},
+ {name: '-258 -184', population: 0},
+ {name: '-184 -111', population: 10},
+ {name: '-111 -37', population: 21},
+ {name: '-37 36', population: 29},
+ {name: '36 109', population: 22},
+ {name: '109 183', population: 9},
+ {name: '183 257', population: 3},
+ {name: '257 331', population: 0},
+ // Notice that there is a unqiue value, and its magnitude is
+ // the same as the heighest population
+
+ // it is the responsibility of the histogram code to do relative scaling
+ {name: 'unique', unique: 29}
+ ];
+
+ return (
+