From 7c70b0657e3d2bda77ec13d0ecc8dfb0801dd017 Mon Sep 17 00:00:00 2001 From: louisnw Date: Tue, 23 May 2023 14:31:27 +0100 Subject: [PATCH] =?UTF-8?q?-=20Fixed=20a=20bug=20causing=20loading=20times?= =?UTF-8?q?=20for=20large=20amounts=20of=20data=20to=20be=20increased=20si?= =?UTF-8?q?gnificantly.=20-=20BETA:=20Dynamic=20candlestick=20loading=20-?= =?UTF-8?q?=20the=20config=20method=20has=20been=20removed,=20and=20its=20?= =?UTF-8?q?methods=20can=20now=20be=20found=20in=20various=20places:=20=20?= =?UTF-8?q?=20=20=20-=20right=5Fpadding:=20moved=20to=20the=20=E2=80=98tim?= =?UTF-8?q?e=5Fscale=E2=80=99=20method.=20=20=20=20=20-=20mode:=20moved=20?= =?UTF-8?q?to=20the=20=E2=80=98price=5Fscale=E2=80=99=20method.=20=20=20?= =?UTF-8?q?=20=20-=20title:=20declared=20in=20the=20new=20=E2=80=98title?= =?UTF-8?q?=E2=80=99=20method.=20-=20It=20is=20now=20possible=20to=20updat?= =?UTF-8?q?e=20titles,=20horizontal=5Flines,=20and=20markers=20within=20Li?= =?UTF-8?q?ne=20objects.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/source/conf.py | 2 +- docs/source/docs.md | 18 ++++++++++++------ setup.py | 2 +- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index dab74d0..991f0ad 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,7 +1,7 @@ project = 'lightweight-charts-python' copyright = '2023, louisnw' author = 'louisnw' -release = '1.0.7' +release = '1.0.8' extensions = ["myst_parser"] diff --git a/docs/source/docs.md b/docs/source/docs.md index 9b44c43..6d79848 100644 --- a/docs/source/docs.md +++ b/docs/source/docs.md @@ -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`. ``` ___ diff --git a/setup.py b/setup.py index 5411e3d..b084bfc 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as f: setup( name='lightweight_charts', - version='1.0.7', + version='1.0.8', packages=find_packages(), python_requires='>=3.9', install_requires=[