Skip to content

[Bug] Performance and Indicator Misplacement Issues in v10.0.0-alpha8 #715

@M-Sufyan22

Description

@M-Sufyan22

Version

10.0.0-alpha8

Steps to Reproduce

Reproduction Steps:

  • Set up a chart with indicators (built-in or custom)
  • Load data using setDataLoader
  • Update data via the callback function
  • Observe indicator misplacement

Code Example:

chart.setDataLoader({
      getBars: ({
        type,
        timestamp,
        callback
      }) => {
        if (type === "init") {
          callback(chartData, true);
        } else if (type === "forward" && timestamp) {
          fetchMoreData(timestamp, callback);
        };
      }
    });

Current Behavior

Hi,
After upgrading from Klinecharts v9 to v10.0.0-alpha8, I've encountered performance issues, particularly with indicators. When new data is loaded via the callback, all indicators (both built-in and custom) become misplaced.

Expected Behavior

It should be very smooth while appending new data, and nothing should get misplaced.

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