Smith Chart Theme does not update on select of dropdown

Hi,
I have created a dropdown with all possible values of smith chart themes. On select of the theme, I render below code but smith chart theme does not update.

letelement:SmithchartTheme=this.props.options.smithChartThemeasSmithchartTheme;
this.smithchartInstance.theme=element;
this.smithchartInstance.refresh();

It also didn't work, if i use theme property ofSmithchartComponent control and assign value to it like theme={this.props.options.smithChartThemeasSmithchartTheme}
In both above cases, I am successfully getting the value of selected theme and it shows minor change to the control by updating the legend color but that's not intended.
The only way it works, if I hard code the value to theme property of the SmithChartComponent control. And in this case I am only be able to set a single value, unable to change the theme on run time.
Can you please help?


1 Reply

BP Baby Palanidurai Syncfusion Team February 13, 2020 02:52 PM UTC

Hi Ali, 

Greetings from Syncfusion. 

We have prepared a simple sample with dropdown. In that, we are changing the theme from dropdown list. Unfortunately, the reported issue is not replicated at our end. 
Sample used for testing, 


Still, we are not aware of which is replicate the issue. Kindly modify the above sample or provide your sample with replication steps which will be helpful in furthermore analysis and provide you the solution sooner. 

Regards, 
Baby. 


Loader.
Up arrow icon