Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The time_scale option requires the bar_spacing parameter. #485

Open
cheum opened this issue Nov 28, 2024 · 0 comments
Open

The time_scale option requires the bar_spacing parameter. #485

cheum opened this issue Nov 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cheum
Copy link

cheum commented Nov 28, 2024

Description

Thanks as always for a great package.
The time_scale option requires the bar_spacing parameter.
If you use min_bar_spacing, there is a limit to the zoom out of the chart in juypter notebook.
2024-11-28 152256

Code example

def time_scale(self, right_offset: int = 0, `bar_spacing: float = 6,` min_bar_spacing: float = 0.5,
                   visible: bool = True, time_visible: bool = True, seconds_visible: bool = False,
                   border_visible: bool = True, border_color: Optional[str] = None):
        """
        Options for the timescale of the chart.
        """
        self.run_script(f'''{self.id}.chart.applyOptions({{timeScale: {js_json(locals())}}})''')

Method of implementation

No response

@cheum cheum added the enhancement New feature or request label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant