lux.vis.Vis.Vis

class lux.vis.Vis.Vis(intent, source=None, title='', score=0.0)[source]

Vis Object represents a collection of fully fleshed out specifications required for data fetching and visualization.

__init__(intent, source=None, title='', score=0.0)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(intent[, source, title, score])

Initialize self.

clear_plot_config()

get_attr_by_attr_name(attr_name)

get_attr_by_channel(channel)

get_attr_by_data_model(dmodel[, exclude_record])

get_attr_by_data_type(dtype)

refresh_source(ldf)

Loading the source data into the Vis by instantiating the specification and populating the Vis based on the source data, effectively “materializing” the Vis.

remove_column_from_spec(attribute[, …])

Removes an attribute from the Vis’s clause

remove_filter_from_spec(value)

render_VSpec([renderer])

set_intent(intent)

Sets the intent of the Vis and refresh the source based on the new intent

to_Altair([standalone])

Generate minimal Altair code to visualize the Vis

to_VegaLite([prettyOutput])

Generate minimal Vega-Lite code to visualize the Vis

Attributes

code

data

intent

mark

min_max

plot_config