leftScale to subchart

This commit is contained in:
David Brazda
2024-06-10 21:17:03 +02:00
parent 10aca2b794
commit d6a7fa1e3c
2 changed files with 6 additions and 4 deletions

View File

@ -176,7 +176,8 @@ class Window:
sync_id: Optional[str] = None, sync_id: Optional[str] = None,
scale_candles_only: bool = False, scale_candles_only: bool = False,
sync_crosshairs_only: bool = False, sync_crosshairs_only: bool = False,
toolbox: bool = False toolbox: bool = False,
leftScale: bool = False
) -> 'AbstractChart': ) -> 'AbstractChart':
subchart = AbstractChart( subchart = AbstractChart(
self, self,
@ -184,7 +185,8 @@ class Window:
height, height,
scale_candles_only, scale_candles_only,
toolbox, toolbox,
position=position position=position,
leftScale=leftScale
) )
if not sync_id: if not sync_id:
return subchart 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, 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: Optional[Union[str, bool]] = None, scale_candles_only: bool = False,
sync_crosshairs_only: bool = False, sync_crosshairs_only: bool = False,
toolbox: bool = False) -> 'AbstractChart': toolbox: bool = False, leftScale: bool = False) -> 'AbstractChart':
if sync is True: if sync is True:
sync = self.id sync = self.id
args = locals() args = locals()

View File

@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
setup( setup(
name='lightweight_charts', name='lightweight_charts',
version='2.0.6', version='2.0.7',
packages=find_packages(), packages=find_packages(),
python_requires='>=3.8', python_requires='>=3.8',
install_requires=[ install_requires=[