From 26a1e085dafb42b4a65cf834b49d58fea04f8ced Mon Sep 17 00:00:00 2001 From: Gordon Woodhull Date: Fri, 15 Mar 2019 07:28:43 -0400 Subject: [PATCH] improve description and formatting --- web/examples/composite-brush-multi-dim.html | 22 +++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/web/examples/composite-brush-multi-dim.html b/web/examples/composite-brush-multi-dim.html index d24110c05..ef59cf5e5 100644 --- a/web/examples/composite-brush-multi-dim.html +++ b/web/examples/composite-brush-multi-dim.html @@ -12,17 +12,16 @@

Usually sub charts of a composite chart share the dimension of the parent. However sometimes, especially when scatter plots are composed, the sub charts may - used different dimensions. This example uses two scatter plots both using array dimensions. - Typically scatter plots use two dimensional brushing (see scatter brushing), - however, composite charts only support one dimensional (along x axis) brushing.

-

Try brushing on the chart and see data getting filtered on the right.

-

For the curious, you will notice that unlike other charts brushing removes points outside range of the brush + use different dimensions. This example uses two scatter plots both using array dimensions. + Typically scatter plots use two dimensional brushing (see scatter brushing); + however, composite charts only support one dimensional brushing along the x axis.

+

Try brushing on the chart and see data getting filtered in the table on the right.

+

Notice that unlike in other charts, brushing removes points outside range of the brush instead of just fading them. - The three dimensions used by different charts are actually related. - When brush applies filters on all these three dimensions, all data outside the brush range actually gets removed - by crossfilter. There is no easy way to currently avoid that.

+ This is because the composite chart uses three different dimensions for the child charts, + so each observes the filter applied to the others.

-
+
@@ -93,7 +92,10 @@ dataTable .dimension(dimX) .group(function (d) { return d.x; }) - .columns(['x', 'y', 'z']); + .columns(['x', 'y', 'z']) + .on('renderlet', function (table) { + table.selectAll('.dc-table-group').classed('info', true); + }); dc.renderAll();