I am working with tm1-ui-chart UI component, retrieving the data from a service call (that service will retrieve the data by triggering MDX query). The chart data and color to be displayed is retrieved dynamically from the cube.
We are getting multi series data from cube. the number of series is dynamic.
The issue here is the color scheme display, I am setting the color scheme attribute as expected, but it is not taking from the tm1-color-scheme attribute first time, from the second time when the chart redrawn at any event then it is getting updated with the color scheme which we are setting.
The first time it is taking some default color scheme, from second time it is taking colors from tm1-color-scheme attribute.
I have also replicate the scenario in canvas sample: please find attachments below:
First time chart displyed with default colors:
Second time display of chart after a refresh event, in this scenario colors are coming as expected :
JS Code, which has chart data and color scheme
Can you please help me if there is any fix for this.
Let me know if you need nay more details on this
Thanks in advance,