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

Clearing marker list #21

Closed
Zartexo opened this issue Jun 11, 2023 · 2 comments
Closed

Clearing marker list #21

Zartexo opened this issue Jun 11, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Zartexo
Copy link

Zartexo commented Jun 11, 2023

Hi,

when setting new data to the chart the markers from before will still be in the array of markers and shown at the first data point.

Screenshot 2023-06-11 122302

I suggest to add the function remove_marker_all() to clear the array of markers:

    def remove_marker_all(self):
        """
        Clears the array of markers.\n
        """
        self.run_script(f'''
           {self.id}.markers = []
           {self.id}.series.setMarkers({self.id}.markers)''')

BR

@louisnw01
Copy link
Owner

Hi!

This sounds good; I'll add a clear_markers method for the next update, as well as a clear_horizontal_lines for consistency.

@louisnw01 louisnw01 added the enhancement New feature or request label Jun 18, 2023
@louisnw01
Copy link
Owner

Hi,

This has been implemented in the latest version (1.0.13)

Thanks!
Louis

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

2 participants