You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a sequence of plots that share a single brush param, which is an interval selection on 2 axis for scatterplots and 1 axis for histograms. Any plot should be brushable, which filters the other plots accordingly. This works fine, but I also need to be able to provide default values to any of the plots, and I've found that the default value only works if it's provided to the first plot. Since the other plots may have different axis from the first plot, it's not possible to provide default values that accurately reflect selections made in any plots other than the first. In this example, you can see that I've provided a default value to the second scatterplot, but when run no selection appears. However, if you drag over the second scatterplot, the brush selection behaves as desired. JSON spec for this example:
Additionally, here you can see that the default value works as expected when provided to the first scatterplot. Finally, here you can see that providing the default value to the histogram does not work.
Checklist
I checked for duplicate issues.
The text was updated successfully, but these errors were encountered:
This does appear to be a vega-lite issue and not a vega issue; comparing the compiled version of the working example (where value is given to the param in the first plot) and the compiled version of the broken example (where value is given to the param in the second plot) reveals that "brush_store" (in the data field) has a value in the working example but not in the broken example.
Also of note: if the params field is excluded from the first plot, the default value works fine on the second plot. This doesn't entirely solve the issue as excluding the params field on the first plot prevents selections on that plot.
Bug Description
I'm trying to create a sequence of plots that share a single
brush
param, which is an interval selection on 2 axis for scatterplots and 1 axis for histograms. Any plot should be brushable, which filters the other plots accordingly. This works fine, but I also need to be able to provide default values to any of the plots, and I've found that the default value only works if it's provided to the first plot. Since the other plots may have different axis from the first plot, it's not possible to provide default values that accurately reflect selections made in any plots other than the first. In this example, you can see that I've provided a default value to the second scatterplot, but when run no selection appears. However, if you drag over the second scatterplot, the brush selection behaves as desired. JSON spec for this example:Additionally, here you can see that the default value works as expected when provided to the first scatterplot. Finally, here you can see that providing the default value to the histogram does not work.
Checklist
The text was updated successfully, but these errors were encountered: