Files
louisnw f72baf95ba Polygon:
- Added async methods to polygon.
- The `requests` library is no longer required, with `urllib` being used instead.
- Added the `get_bar_data` function, which returns a dataframe of aggregate data from polygon.
- Opened up the `subscribe` and `unsubscribe` functions

Enhancements:
- Tables will now scroll when the rows exceed table height.

Bugs:
- Fixed a bug preventing async functions being used with horizontal line event.
- Fixed a bug causing the legend to show duplicate lines if the line was created after the legend.
- Fixed a bug causing the line hide icon to persist within the legend after deletion (#75)
- Fixed a bug causing the search box to be unfocused when the chart is loaded.
2023-08-27 00:20:05 +01:00

554 B

HorizontalLine


The `HorizontalLine` object represents a `PriceLine` in Lightweight Charts.

Its instance should be accessed from the `horizontal_line` method.



```{py:method} update(price: NUM)

Updates the price of the horizontal line.
```


```{py:method} label(text: str)

Updates the label of the horizontal line.
```


```{py:method} delete()

Irreversibly deletes the horizontal line.
```