-
I have a CSV file with two columns for a time series, with the row number implying the time. I can easily plot them on the same graph using marks, but I think these might be best be displayed as separate graphs, one above the other. I can render them in separate cells in Observable, but facets look like they might work too? However, I don't see how to do it. (I've looked at the examples and the API, but I don't really grok facets and don't understand how they work.) How would you get all the data in a mark to be displayed in its own facet? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Facets represent a partition of your dataset—something you can’t do with this representation. However you can transform the data so that it has one observation per row, then partition these observations: https://observablehq.com/@fil/untidy-data-874 |
Beta Was this translation helpful? Give feedback.
Facets represent a partition of your dataset—something you can’t do with this representation. However you can transform the data so that it has one observation per row, then partition these observations: https://observablehq.com/@fil/untidy-data-874