line

class virtualitics_sdk.elements.line.HorizontalLine(label, y=None, desc='')

Bases: Line

to_json()
class virtualitics_sdk.elements.line.Line(desc='')

Bases: ABC

to_json()
validate_input()
class virtualitics_sdk.elements.line.LineDataPoint(x, y)

Bases: object

to_json()
class virtualitics_sdk.elements.line.LineType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

HORIZONTAL = 'horizontal'
LINEAR = 'linear'
VERTICAL = 'vertical'
class virtualitics_sdk.elements.line.OLSTrendLine(data, x_col, y_col, domain, description='', intersect_origin=False, is_time_series=False, fit_center=True, color_key=None, time_series_unit=Timedelta('1 days 00:00:00'))

Bases: Line

fit_transform(data, x_col, y_col, domain)
to_json()

Converts the trend line object to a JSON serializable dictionary.

Returns:

dict: A dictionary representation of the trend line object.

class virtualitics_sdk.elements.line.VerticalLine(label, x=None, desc='')

Bases: Line

to_json()