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.
This commit is contained in:
44
docs/source/reference/line.md
Normal file
44
docs/source/reference/line.md
Normal file
@ -0,0 +1,44 @@
|
||||
# `Line`
|
||||
|
||||
|
||||
````{py:class} Line(name: str, color: COLOR, style: LINE_STYLE, width: int, price_line: bool, price_label: bool)
|
||||
|
||||
The `Line` object represents a `LineSeries` object in Lightweight Charts and can be used to create indicators. As well as the methods described below, the `Line` object also has access to:
|
||||
|
||||
[`marker`](#marker), [`horizontal_line`](#AbstractChart.horizontal_line) [`hide_data`](#hide_data), [`show_data`](#show_data) and [`price_line`](#price_line).
|
||||
|
||||
Its instance should only be accessed from [create_line](#AbstractChart.create_line).
|
||||
___
|
||||
|
||||
|
||||
|
||||
```{py:function} set(data: pd.DataFrame)
|
||||
|
||||
Sets the data for the line.
|
||||
|
||||
When a name has not been set upon declaration, the columns should be named: `time | value` (Not case sensitive).
|
||||
|
||||
Otherwise, the method will use the column named after the string given in `name`. This name will also be used within the legend of the chart.
|
||||
|
||||
```
|
||||
___
|
||||
|
||||
|
||||
|
||||
```{py:function} update(series: pd.Series)
|
||||
|
||||
Updates the data for the line.
|
||||
|
||||
This should be given as a Series object, with labels akin to the `line.set()` function.
|
||||
```
|
||||
|
||||
|
||||
|
||||
___
|
||||
|
||||
```{py:function} line.delete()
|
||||
|
||||
Irreversibly deletes the line.
|
||||
|
||||
```
|
||||
````
|
||||
Reference in New Issue
Block a user