Source code for lightningchart.ui.polar_axis

from __future__ import annotations

from lightningchart.ui.axis import GenericAxis
from lightningchart.utils import convert_color_to_hex
from lightningchart.utils.utils import ColorInput


[docs] class PolarAxis(GenericAxis): def __init__(self, chart): GenericAxis.__init__(self, chart)
[docs] def set_stroke(self, thickness: int | float, color: ColorInput | None = None): """Set Stroke style of the axis. Args: thickness (int | float): Thickness of the stroke. color (Color): Color of the stroke. Use 'transparent' or None to hide. Returns: The instance of the class for fluent interface. """ color = convert_color_to_hex(color) if color is not None else None self.instance.send( self.id, 'setStrokeStyle', {'thickness': thickness, 'color': color}, ) return self