| |
- abc.ABC(builtins.object)
-
- Figure
class Figure(abc.ABC) |
|
Figure(df: pandas.core.frame.DataFrame)
This is an abstract container class that holds the Plotly figure object. All that gets passed is the pandas
DataFrame and a config dictionary or JSON object that holds all the information. Plotly then generates the figure
and is held here.
This is also where the other graphing figures inherit from (eg. Boxplot, Barchart, Scatter, etc.) |
|
- Method resolution order:
- Figure
- abc.ABC
- builtins.object
Methods defined here:
- __init__(self, df: pandas.core.frame.DataFrame)
- Initialize self. See help(type(self)) for accurate signature.
- construct_figure(self, config: dict)
- Constructs the figure object to be passed for graphing.
:param config: A dictionary that contains all the parameters to be passed to Plotly's Figure object
- get_figure(self) -> plotly.graph_objs._figure.Figure
- Get's the constructed figure object to be displayed
:return: A Plotly Figure object
Static methods defined here:
- eliminate_nones(config: dict)
- Iterates through the passed config and removes all unnecessary empty values
:param config: A dictionary that contains all the parameters to be passed to Plotly's Figure object
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- __abstractmethods__ = frozenset({'__init__', 'construct_figure', 'get_figure'})
| |