From 40629af2cf8bf4014498ab1cef84d54c61702ca2 Mon Sep 17 00:00:00 2001 From: Leung CHAN Date: Fri, 31 Aug 2018 16:55:44 +0800 Subject: [PATCH] add a single select example using addFilterHandler() --- .../bar-single-select-add-filter-handler.html | 55 +++++++++++++++++++ web/examples/index.html | 19 ++++--- 2 files changed, 65 insertions(+), 9 deletions(-) create mode 100644 web/examples/bar-single-select-add-filter-handler.html diff --git a/web/examples/bar-single-select-add-filter-handler.html b/web/examples/bar-single-select-add-filter-handler.html new file mode 100644 index 000000000..483986aa1 --- /dev/null +++ b/web/examples/bar-single-select-add-filter-handler.html @@ -0,0 +1,55 @@ + + + + dc.js - Bar Chart Example + + + + + + +
+ +

Frequently asked question: how to enable single-select on an ordinal chart?

+ +
+
+ +
+
+ + + + + + +
+ + diff --git a/web/examples/index.html b/web/examples/index.html index cb076090a..669d7440d 100644 --- a/web/examples/index.html +++ b/web/examples/index.html @@ -15,69 +15,70 @@

Examples of using dc.js

bar single select + bar single select(addFilterHandler) bar boxplot basic boxplot enhanced boxplot render data - boxplot time + boxplot time cbox menu complex reduce composite brush multi dim composite - download table + download table filter stacks filtering removing filtering heat - heatmap filtering + heatmap filtering html legend line multi focus multi scatter - number + number ordinal bar ordinal line pie external labels pie - range series + range series replacing data right axis row top axis row vertical line - row + row scatter brushing scatter series scatter select - series + series sparkline splom stacked bar sunburst cat - sunburst with value accessor + sunburst with value accessor sunburst switching time intervals table on aggregated data table pagination - text filter widget + text filter widget time intervals