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,
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()