From d6a7fa1e3c00f68bfb28e08c44674de47e902f1d Mon Sep 17 00:00:00 2001 From: David Brazda Date: Mon, 10 Jun 2024 21:17:03 +0200 Subject: [PATCH] leftScale to subchart --- lightweight_charts/abstract.py | 8 +++++--- setup.py | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lightweight_charts/abstract.py b/lightweight_charts/abstract.py index efbe696..304d9a1 100644 --- a/lightweight_charts/abstract.py +++ b/lightweight_charts/abstract.py @@ -176,7 +176,8 @@ class Window: sync_id: Optional[str] = None, scale_candles_only: bool = False, sync_crosshairs_only: bool = False, - toolbox: bool = False + toolbox: bool = False, + leftScale: bool = False ) -> 'AbstractChart': subchart = AbstractChart( self, @@ -184,7 +185,8 @@ class Window: height, scale_candles_only, toolbox, - position=position + position=position, + leftScale=leftScale ) if not sync_id: return subchart @@ -1046,7 +1048,7 @@ class AbstractChart(Candlestick, Pane): def create_subchart(self, position: FLOAT = 'left', width: float = 0.5, height: float = 0.5, sync: Optional[Union[str, bool]] = None, scale_candles_only: bool = False, sync_crosshairs_only: bool = False, - toolbox: bool = False) -> 'AbstractChart': + toolbox: bool = False, leftScale: bool = False) -> 'AbstractChart': if sync is True: sync = self.id args = locals() diff --git a/setup.py b/setup.py index 3fb00c9..11f9865 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='2.0.6', + version='2.0.7', packages=find_packages(), python_requires='>=3.8', install_requires=[