Source code for box_plot

from mdvtools.charts.base_plot import BasePlot


[docs] class BoxPlot(BasePlot): def __init__(self, title, params, size, position, id=None): super().__init__(title, "box_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_default_color(self, color): self.plot_data["default_color"] = color
[docs] def set_brush(self, brush_type): self.plot_data["brush"] = brush_type
[docs] def set_filter(self, filter_type): self.plot_data["on_filter"] = filter_type
[docs] def set_band_width(self, band_width): self.plot_data["band_width"] = band_width
[docs] def set_intervals(self, intervals): self.plot_data["intervals"] = intervals
[docs] def set_radius(self, radius): self.plot_data["radius"] = radius
[docs] def set_opacity(self, opacity): self.plot_data["opacity"] = opacity
[docs] def set_color_by(self, color_by): self.plot_data["color_by"] = color_by
[docs] def set_color_legend(self, display, position): self.plot_data["color_legend"] = {"display": display, "pos": position}
[docs] def set_tooltip(self, show): self.plot_data["tooltip"] = {"show": show}
# Additional methods for color scaling, log scale, etc., can be added here