Closed joshhjacobson closed 5 years ago
@joshhjacobson thanks so much for the report. I have a fix for this, but I'm going to look quickly at #26 to see if we can resolve both.
@timelyportfolio thank you for the fast response, so glad you were able to figure this out so quickly!
In version 2.2.0, the bug fix in the
brushFor
function had the side effect of partially breakinghideAxis
. The function works when data is first added to the chart, but if called individually there is an error. The following, taken from thebrushing.html
demo, demonstrates the issue:This gives:
In versions prior to 2.2.0, this was not an issue. Now, it seems that the
axis
being referenced inbrushFor.js
herehas already been removed from
config.dimensions
insideEffects.js
herethus,
config.dimensions[axis]
is undefined.I would attempt to fix this myself, but I'm not really sure why it's happening. @timelyportfolio do you have any thoughts on this? Maybe we could delay execution of
pc.dimensions(without(config.dimensions, d.value))
until afterbrushFor
has been executed?