- Fixed a bug causing loading times for large amounts of data to be increased significantly.
- BETA: Dynamic candlestick loading
- the config method has been removed, and its methods can now be found in various places:
- right_padding: moved to the ‘time_scale’ method.
- mode: moved to the ‘price_scale’ method.
- title: declared in the new ‘title’ method.
- It is now possible to update titles, horizontal_lines, and markers within Line objects.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
project = 'lightweight-charts-python'
|
||||
copyright = '2023, louisnw'
|
||||
author = 'louisnw'
|
||||
release = '1.0.7'
|
||||
release = '1.0.8'
|
||||
|
||||
extensions = ["myst_parser"]
|
||||
|
||||
|
||||
@ -88,14 +88,14 @@ ___
|
||||
Removes a horizontal line at the given price.
|
||||
___
|
||||
|
||||
### `config`
|
||||
`mode: 'normal'/'logarithmic'/'percentage'/'index100'` | `title: str` | `right_padding: int`
|
||||
### `price_scale`
|
||||
`mode: 'normal'/'logarithmic'/'percentage'/'index100'` | `align_labels: bool` | `border_visible: bool` | `border_color: str` | `text_color: str` | `entire_text_only: bool` | `ticks_visible: bool`
|
||||
|
||||
Config options for the chart.
|
||||
Price scale options for the chart.
|
||||
___
|
||||
|
||||
### `time_scale`
|
||||
`visible: bool` | `time_visible: bool` | `seconds_visible: bool`
|
||||
`right_offset: int` | `min_bar_spacing: float` | `visible: bool` | `time_visible: bool` | `seconds_visible: bool` | `border_visible: bool` | `border_color: str`
|
||||
|
||||
Time scale options for the chart.
|
||||
___
|
||||
@ -151,6 +151,12 @@ ___
|
||||
Overlays a watermark on top of the chart.
|
||||
___
|
||||
|
||||
### `title`
|
||||
`title: str`
|
||||
|
||||
Sets the title label for the chart.
|
||||
___
|
||||
|
||||
### `legend`
|
||||
`visible: bool` | `ohlc: bool` | `percent: bool` | `color: str` | `font_size: int` | `font_family: str`
|
||||
|
||||
@ -210,10 +216,10 @@ ___
|
||||
|
||||
## `Line`
|
||||
|
||||
The `Line` object represents a `LineSeries` object in Lightweight Charts and can be used to create indicators.
|
||||
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 the [`title`](#title), [`marker`](#marker) and [`horizontal_line`](#horizontal-line) methods.
|
||||
|
||||
```{important}
|
||||
The `line` object should only be accessed from the [create_line](#create-line) method of `Chart`.
|
||||
The `line` object should only be accessed from the [`create_line`](#create-line) method of `Chart`.
|
||||
```
|
||||
___
|
||||
|
||||
|
||||
Reference in New Issue
Block a user