tbapi.api.interfaces.ichart_point

 1from __future__ import annotations
 2from typing import TYPE_CHECKING
 3from tbapi.common.decorators import tb_interface
 4from tbapi.common.converters import to_python_datetime, to_net_datetime
 5from datetime import datetime
 6from Tickblaze.Scripts.Api.Interfaces import IChartPoint as _IChartPoint
 7from typing import Any, overload
 8from abc import ABC, abstractmethod
 9from tbapi.api.interfaces.ipoint import IPoint
10
11@tb_interface(_IChartPoint)
12class IChartPoint(IPoint):
13    """Represents a point on a chart with a specific index, time, and value.      Used to store data points on the chart, where each point has a unique index and associated time and value."""
14
15    @property
16    def index(self) -> int:
17        """The index of the chart point, which serves as the position identifier of the point in the chart's data series."""
18        val = self._value.Index
19        return val
20    @property
21    def time(self) -> Any:
22        """The time associated with the chart point. It represents the time at which the data point occurred."""
23        val = self._value.Time
24        return val
25    @time.setter
26    def time(self, val: Any):
27        tmp = self._value
28        tmp.Time = val
29        self._value = tmp
30    @property
31    def value(self) -> Any:
32        """The value associated with the chart point, representing the data value at the given time."""
33        val = self._value.Value
34        return val
35    @value.setter
36    def value(self, val: Any):
37        tmp = self._value
38        tmp.Value = val
39        self._value = tmp
@tb_interface(_IChartPoint)
class IChartPoint(tbapi.api.interfaces.ipoint.IPoint):
17@tb_interface(_IChartPoint)
18class IChartPoint(IPoint):
19    """Represents a point on a chart with a specific index, time, and value.      Used to store data points on the chart, where each point has a unique index and associated time and value."""
20
21    @property
22    def index(self) -> int:
23        """The index of the chart point, which serves as the position identifier of the point in the chart's data series."""
24        val = self._value.Index
25        return val
26    @property
27    def time(self) -> Any:
28        """The time associated with the chart point. It represents the time at which the data point occurred."""
29        val = self._value.Time
30        return val
31    @time.setter
32    def time(self, val: Any):
33        tmp = self._value
34        tmp.Time = val
35        self._value = tmp
36    @property
37    def value(self) -> Any:
38        """The value associated with the chart point, representing the data value at the given time."""
39        val = self._value.Value
40        return val
41    @value.setter
42    def value(self, val: Any):
43        tmp = self._value
44        tmp.Value = val
45        self._value = tmp

Represents a point on a chart with a specific index, time, and value. Used to store data points on the chart, where each point has a unique index and associated time and value.

IChartPoint(*args, **kwargs)
199        def __init__(self, *args, **kwargs):
200            pass
index: int
21    @property
22    def index(self) -> int:
23        """The index of the chart point, which serves as the position identifier of the point in the chart's data series."""
24        val = self._value.Index
25        return val

The index of the chart point, which serves as the position identifier of the point in the chart's data series.

time: Any
26    @property
27    def time(self) -> Any:
28        """The time associated with the chart point. It represents the time at which the data point occurred."""
29        val = self._value.Time
30        return val

The time associated with the chart point. It represents the time at which the data point occurred.

value: Any
36    @property
37    def value(self) -> Any:
38        """The value associated with the chart point, representing the data value at the given time."""
39        val = self._value.Value
40        return val

The value associated with the chart point, representing the data value at the given time.