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
So Layers are in reality both data and chart builders. In the first example, Layer() is being used to hold data, and Line/Rect are only used for their chart builder. Layer passes its data to the chart builders.
However, in the second example Line().data(df) is a full Layer and then we create a view of of it.
Maybe I'm overthinking this, but Layer seems to be overloaded? Though to be fair, in the first example, Line and Rect do end up being full layers. So maybe I just think it's confusing that a Layer can be a Geom when it has no data, or a DataLayer when it has no chart builder.
The text was updated successfully, but these errors were encountered:
Right now we have:
and
So Layers are in reality both
data
and chart builders. In the first example,Layer()
is being used to hold data, andLine
/Rect
are only used for their chart builder. Layer passes its data to the chart builders.However, in the second example
Line().data(df)
is a full Layer and then we create a view of of it.Maybe I'm overthinking this, but Layer seems to be overloaded? Though to be fair, in the first example,
Line
andRect
do end up being full layers. So maybe I just think it's confusing that a Layer can be a Geom when it has no data, or a DataLayer when it has no chart builder.The text was updated successfully, but these errors were encountered: