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
My suggested implementation may be problematic, but I hope it will be enough to begin a discussion.
Problem
Currently we can use top-level datasets to map names to inline datasets, see spec-datasets. This is convenient for keeping the spec lightweight and comprehensible, especially for layered charts.
If I want to do the same thing, instead referring to a dataset using a url, I (think I) have to use the format shown in spec-csv. The issue is that if I want to switch out my dataset, I need to do it in two places.
What I would like to be able to do
I would like to be able to do something like shown in spec-proposed, where datasets maps names to objects containing data specifications (not just inline values).
As a further request (which may be completely unreasonable), I wonder if datasets could map names to objects that would contain data and, optionally, transform specifications, as transformed data remains data. For example:
For me, being able to use top-level URL data is much more important than the transforms - I just thought to bring it up while the topic might be "open".
If transforms will not be available at the top-level, then there is no need for the data nesting, so I would agree completely with @kanitw's suggestion. (Congrats btw!)
This may be a follow-on to #3806, and might also affect vega/altair#951.
My suggested implementation may be problematic, but I hope it will be enough to begin a discussion.
Problem
Currently we can use top-level
datasets
to map names to inline datasets, see spec-datasets. This is convenient for keeping the spec lightweight and comprehensible, especially for layered charts.If I want to do the same thing, instead referring to a dataset using a url, I (think I) have to use the format shown in spec-csv. The issue is that if I want to switch out my dataset, I need to do it in two places.
What I would like to be able to do
I would like to be able to do something like shown in spec-proposed, where
datasets
maps names to objects containingdata
specifications (not just inline values).As a further request (which may be completely unreasonable), I wonder if
datasets
could map names to objects that would containdata
and, optionally,transform
specifications, as transformed data remains data. For example:spec-datasets
spec-csv
spec-proposed
The text was updated successfully, but these errors were encountered: