Maybe reframing the question, when I applied filtering to my dataset in Framework - I noticed that the color would stay the same when selecting a specific “TCXO”. In general I was able to figure this out by just adding another mark where I plot all the data with the stroke being TCXO but set the opacity to “0”. This is the only way I was able to get the color legend to show but I may be approaching this the wrong way. I’m not necessarily focused on implementing “Swatches” but that was the reference I found on how to keep static colors when toggling the data. My new implementation works but, again, I’m not sure if it’s the best approach.
zeetools
4
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Using D3 outside of Observable | 2 | 2339 | June 22, 2020 | |
| Can a class defined in a notebook be imported? | 4 | 595 | July 21, 2020 | |
| Import code from ObservableHQ project to a Framework project | 6 | 735 | June 28, 2024 | |
| In defense of static imports | 10 | 2277 | December 22, 2020 | |
| Importing notebook into framework with visible code | 18 | 412 | July 29, 2024 |
