diff --git a/docs/source/conf.py b/docs/source/conf.py index c56dafa..6d12909 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -3,7 +3,7 @@ import os.path project = 'lightweight-charts-python' copyright = '2023, louisnw' author = 'louisnw' -release = '1.0.18' +release = '1.0.20' extensions = [ "myst_parser", diff --git a/docs/source/reference/abstract_chart.md b/docs/source/reference/abstract_chart.md index ee3f6f7..fdc6c79 100644 --- a/docs/source/reference/abstract_chart.md +++ b/docs/source/reference/abstract_chart.md @@ -152,6 +152,13 @@ ___ +```{py:method} marker_list(markers: list) -> List[str] + +Creates multiple markers and returns a list of marker ids. + +``` + + ```{py:method} remove_marker(marker_id: str) Removes the marker with the given id. @@ -342,7 +349,7 @@ ___ -````{py:method} create_subchart(position: FLOAT, width: float, height: float, sync: bool | str, scale_candles_only: bool, toolbox: bool) -> AbstractChart +````{py:method} create_subchart(position: FLOAT, width: float, height: float, sync: bool | str, sync_crosshairs_only: bool, scale_candles_only: bool, toolbox: bool) -> AbstractChart Creates and returns a Chart object, placing it adjacent to the previous Chart. This allows for the use of multiple chart panels within the same window. @@ -355,6 +362,9 @@ Creates and returns a Chart object, placing it adjacent to the previous Chart. T `sync` : If given as `True`, the Subchart's timescale and crosshair will follow that of the declaring Chart. If a `str` is passed, the Chart will follow the panel with the given id. Chart ids can be accessed from the `chart.id` attribute. +`sync_crosshairs_only` +: If given as `True`, only the crosshairs will be synced and movement will remain independant. + ```{important} `width` and `height` should be given as a number between 0 and 1. ``` diff --git a/setup.py b/setup.py index 106f5e7..13df00e 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.19', + version='1.0.20', packages=find_packages(), python_requires='>=3.8', install_requires=[