tbapi.api.interfaces.ichart_points

 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 IChartPoints as _IChartPoints
 7from typing import Any, overload
 8from abc import ABC, abstractmethod
 9from tbapi.api.interfaces.ichart_point import IChartPoint
10
11@tb_interface(_IChartPoints)
12class IChartPoints():
13    """Represents a collection of chart points that can be accessed and manipulated.      Each chart point consists of X (time) and Y (value) data values."""
14
15
16    @abstractmethod
17    def add(self, x_data_value: Any, y_data_value: Any) -> None:
18        """Adds a new chart point to the collection with specified X and Y data values.            The X coordinate (time) of the chart point.      The Y coordinate (value) of the chart point."""
19        result = self._value.Add(x_data_value, y_data_value)
20        return result
21  
22
23    def __getitem__(self, index: int) -> Any:
24        result = self._value[index]
25        return IChartPoint(_existing=result)
@tb_interface(_IChartPoints)
class IChartPoints:
17@tb_interface(_IChartPoints)
18class IChartPoints():
19    """Represents a collection of chart points that can be accessed and manipulated.      Each chart point consists of X (time) and Y (value) data values."""
20
21
22    @abstractmethod
23    def add(self, x_data_value: Any, y_data_value: Any) -> None:
24        """Adds a new chart point to the collection with specified X and Y data values.            The X coordinate (time) of the chart point.      The Y coordinate (value) of the chart point."""
25        result = self._value.Add(x_data_value, y_data_value)
26        return result
27  
28
29    def __getitem__(self, index: int) -> Any:
30        result = self._value[index]
31        return IChartPoint(_existing=result)

Represents a collection of chart points that can be accessed and manipulated. Each chart point consists of X (time) and Y (value) data values.

IChartPoints(*args, **kwargs)
199        def __init__(self, *args, **kwargs):
200            pass
@abstractmethod
def add(self, x_data_value: Any, y_data_value: Any) -> None:
22    @abstractmethod
23    def add(self, x_data_value: Any, y_data_value: Any) -> None:
24        """Adds a new chart point to the collection with specified X and Y data values.            The X coordinate (time) of the chart point.      The Y coordinate (value) of the chart point."""
25        result = self._value.Add(x_data_value, y_data_value)
26        return result

Adds a new chart point to the collection with specified X and Y data values. The X coordinate (time) of the chart point. The Y coordinate (value) of the chart point.