Skip to content

Last price color does not change immediately after setChartType #146

@kokovtsev

Description

@kokovtsev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: need to reviewSomething isn't working. Need to review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions