Skip to content

[Bug] Y-axis points do not reset when switching symbol after dragging the y-axis #745

@asfand987

Description

@asfand987

Version

v-alpha10

Steps to Reproduce

steps to reproduce - https://stackblitz.com/edit/xpwhpggc?file=index.js

  • On load, drag the y-axis up or down to change the values of y-axis
  • now wait 10 second for symbol to change
  • The new symbol will still use the y-axis values of the old symbol that were modified by dragging the y-axis around

Current Behavior

Normally when you change symbols the y-axis updates to reflect the price values of the new symbol. For example symbol 1 has a price of $100, the y axis will have a visible range around this price mark. Now drag the y-axis around to change its values.

When you switch to symbol 2 that might have a price of $1000, the y axis should update to reflect the new range. However it still uses the range of the old symbol that was modified by dragging the y-axis

Expected Behavior

Normally when you change symbols the y-axis updates to reflect the price values of the new symbol. For example symbol 1 has a price of $100, the y axis will have a visible range around this price mark. Now drag the y-axis around to change its values. When you switch to symbol 2 that might have a price of $1000, the y axis should update to reflect the new range.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions