- 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'
|
project = 'lightweight-charts-python'
|
||||||
copyright = '2023, louisnw'
|
copyright = '2023, louisnw'
|
||||||
author = 'louisnw'
|
author = 'louisnw'
|
||||||
release = '1.0.7'
|
release = '1.0.8'
|
||||||
|
|
||||||
extensions = ["myst_parser"]
|
extensions = ["myst_parser"]
|
||||||
|
|
||||||
|
|||||||
@ -88,14 +88,14 @@ ___
|
|||||||
Removes a horizontal line at the given price.
|
Removes a horizontal line at the given price.
|
||||||
___
|
___
|
||||||
|
|
||||||
### `config`
|
### `price_scale`
|
||||||
`mode: 'normal'/'logarithmic'/'percentage'/'index100'` | `title: str` | `right_padding: int`
|
`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`
|
### `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.
|
Time scale options for the chart.
|
||||||
___
|
___
|
||||||
@ -151,6 +151,12 @@ ___
|
|||||||
Overlays a watermark on top of the chart.
|
Overlays a watermark on top of the chart.
|
||||||
___
|
___
|
||||||
|
|
||||||
|
### `title`
|
||||||
|
`title: str`
|
||||||
|
|
||||||
|
Sets the title label for the chart.
|
||||||
|
___
|
||||||
|
|
||||||
### `legend`
|
### `legend`
|
||||||
`visible: bool` | `ohlc: bool` | `percent: bool` | `color: str` | `font_size: int` | `font_family: str`
|
`visible: bool` | `ohlc: bool` | `percent: bool` | `color: str` | `font_size: int` | `font_family: str`
|
||||||
|
|
||||||
@ -210,10 +216,10 @@ ___
|
|||||||
|
|
||||||
## `Line`
|
## `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}
|
```{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`.
|
||||||
```
|
```
|
||||||
___
|
___
|
||||||
|
|
||||||
|
|||||||
2
setup.py
2
setup.py
@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='lightweight_charts',
|
name='lightweight_charts',
|
||||||
version='1.0.7',
|
version='1.0.8',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
python_requires='>=3.9',
|
python_requires='>=3.9',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
|
|||||||
Reference in New Issue
Block a user