SimplePlotRequest

class desdeo_tools.interaction.SimplePlotRequest(data, message, dimensions_data=None, chart_title=None, request_id=None)[source]

Bases: desdeo_tools.interaction.request.BaseRequest

Methods can use this request class to send out some data to be shown to the decision maker (typically in the form of a plot). This data is usually a set of solutions, stored in the content variable of this class. The manner of visualization is left to the UI.

content is a dict that contains the following keys: “data” (pandas.DataFrame): The data to be plotted. “dimensional_data” (pandas.Dataframe): The data contained in this key can be used to scale the data to be plotted. “chart_title” (str): A recommended title for the visualization. “message” (Union[str, List[str]]): A message or list of messages to be displayed to the decision maker.