from mdvtools.charts.base_plot import BasePlot
[docs]
class DotPlot(BasePlot):
def __init__(self, title, params, size, position, id=None):
super().__init__(title, "dot_plot", params, size, position, id)
[docs]
def set_axis_properties(self, axis, properties):
if "axis" not in self.plot_data:
self.plot_data["axis"] = {}
self.plot_data["axis"][axis] = properties
[docs]
def set_color_scale(self, log_scale=False):
self.plot_data["color_scale"] = {"log": log_scale}
[docs]
def set_color_legend(self, display, position):
self.plot_data["color_legend"] = {"display": display, "pos": position}
[docs]
def set_fraction_legend(self, display, position):
self.plot_data["fraction_legend"] = {"display": display, "pos": position}
# Additional methods for customization (e.g., tooltip visibility) can be added here