diff --git a/web/examples/complex-reduce.html b/web/examples/complex-reduce.html new file mode 100644 index 000000000..36fcaea05 --- /dev/null +++ b/web/examples/complex-reduce.html @@ -0,0 +1,139 @@ + + + + dc.js - Bar Chart Example + + + + + +

Frequently asked question: how to show the minimum/maximum of some value in the rows?

+ +

Some kinds of reductions require the entire set of values at every step: median, mode, minimum, + maximum. (It is almost by accident that you can get away with calculating the mean without looking + at all the rows.) This example shows how to keep the set of + values. See + the source for details.

+ +
+ median + min + max +
+
+

Run

+ +
+
+

Experiment

+ +
+ + + + + + + + diff --git a/web/examples/index.html b/web/examples/index.html index 4e0405b07..f0208250b 100644 --- a/web/examples/index.html +++ b/web/examples/index.html @@ -16,33 +16,34 @@

Examples of using dc.js

box plot + complex reduce composite filtering removing filtering - heat + heat heatmap filtering line multi focus multi scatter - number + number ord pie external labels pie replacing data - right axis + right axis row scatter brushing scatter series scatter - select + select series stacked bar table on aggregated data