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

Last price color does not change immediately after setChartType #146

Open
2 tasks done
kokovtsev opened this issue Feb 9, 2024 · 0 comments
Open
2 tasks done

Last price color does not change immediately after setChartType #146

kokovtsev opened this issue Feb 9, 2024 · 0 comments
Labels
bug: need to review Something isn't working. Need to review

Comments

@kokovtsev
Copy link
Contributor

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Describe the bug 😯

Precondition:
Colors for chart type = line are different from standard ones, e.g. like this

DXChart.createChart(container, {
      colors: {
        lineTheme: {
          upColor: '#ccc',
          downColor: '#ccc',
          noneColor: '#ccc'
        }
      }
    });

When the chart.setChartType method is called, the last price indicator color does not change until some event triggers repaint (e.g. user interacts with the chart, or new data arrives)

Link to minimal reproduction

https://codepen.io/dmkokovtsev/pen/qBvMzXM

Steps to Reproduce the Bug or Issue 🕹

In the codepen attached, press the "Toggle" button to see the issue

Expected behavior 🤔

The "last price" indicator should change its color immediately

Platform

Chrome/Win10

Additional context 🔦

No response

@kokovtsev kokovtsev added the bug: need to review Something isn't working. Need to review label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: need to review Something isn't working. Need to review
Projects
None yet
Development

No branches or pull requests

1 participant