lux.processor.Compiler.Compiler¶
-
class
lux.processor.Compiler.
Compiler
[source]¶ Given a intent with underspecified inputs, compile the intent into fully specified visualizations for visualization.
Methods
__init__
()Initialize self.
determine_encoding
(ldf, vis)Populates Vis with the appropriate mark type and channel information based on ShowMe logic Currently support up to 3 dimensions or measures
enforce_specified_channel
(vis, auto_channel)Enforces that the channels specified in the Vis by users overrides the showMe autoChannels.
enumerate_collection
(_inferred_intent, ldf)Given specifications that have been expanded thorught populateOptions, recursively iterate over the resulting list combinations to generate a vis list.
populate_data_type_model
(ldf, vis_collection)Given a underspecified Clause, populate the data_type and data_model information accordingly
populate_wildcard_options
(_inferred_intent, ldf)Given wildcards and constraints in the LuxDataFrame’s intent, return the list of available values that satisfies the data_type or data_model constraints.
remove_all_invalid
(vis_collection)Given an expanded vis list, remove all visualizations that are invalid.