0

Let's say I have a dataset with three dimensions: X, A, and B.

I want to prevent X from being filtered by brush events in A or B. However, I still want to filter A or B by any dimension, including X.

That is,

X -> A
X -> B
A <-> B

Is there a way to make X one-way or read-only?

Peter Ho
  • 1
  • 1
  • Is it safe to pass dc.js a real dimension and a fake group that is not in any way connected to the dimension? The fake group will contain all the data. – Peter Ho Apr 27 '17 at 05:51
  • Sure, you could use a fake group. It's perfectly safe for the dimension and group to be disconnected, as long as the behavior is what you expect. – Gordon Apr 27 '17 at 13:20
  • Probably pre-calculating the values and using fake groups is the way to go. But if you need it to be more dynamic, you could use the data lifecycle information available in group accessors as of Crossfilter 1.4 to ignore filter events in groups you define on X. – Ethan Jewett Apr 27 '17 at 15:23
  • Thanks! Crossfilter 1.4 is fresh out of the oven. I will check that out. – Peter Ho Apr 27 '17 at 17:27

0 Answers0