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

Main and sub indicator deletion does not work correctly #33

Open
zbkmr opened this issue Mar 11, 2024 · 0 comments
Open

Main and sub indicator deletion does not work correctly #33

zbkmr opened this issue Mar 11, 2024 · 0 comments

Comments

@zbkmr
Copy link

zbkmr commented Mar 11, 2024

@liihuu
image

I am looking at adding and deleting indicators as in this example from Kline, but the indicators other than the indicator I want to delete are deleted. Here is my example

   this.paneId = this.kLineChart.createIndicator(this.selectedVolume);

    addIndicator(obj) {
      if(obj.type === 'main') {
        this.kLineChart.createIndicator(obj.value, true, { id: 'candle_pane' })
      } else {
        this.kLineChart.createIndicator(obj.value)
      }
    },
    removeIndicator(obj) {
      console.log('obj remove', obj)
      if(obj.type === 'main') {
        this.kLineChart.removeIndicator('candle_pane', obj.val);
      } else {
        this.kLineChart.removeIndicator(this.paneId,obj.val);
      }

When I delete the main indicator, all main indicators are deleted. In Sub indicator, indicators other than the value I first set are not deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant