The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
There is a theme service in our Angular application which would toggle the application theme to dark/light mode using CSS variables.
Even though I put the CSS variable name as the color name in Label and Legend models, they are not updated automatically on theme change. But if the chart resizes, it redraws itself automatically and then the colors are updated.
Is there a way to manually redraw a pie chart (not refresh) using a view child reference so I can update the colors on refresh?
SMSrihari Muthukaruppan Syncfusion Team February 21, 2020 12:42 PM UTC
Hi Dish,
We have analyzed your query. From that, we would like to let you know that the donut chart is working fine. We have also tried to reproduce the reported scenario using the css style for datalabel and legend settings in angular 8 version. Unfortunately we are unable to reproduce the reported scenario. We have also attached the sample used for testing. Please find the below sample, code snippet and screenshot
If you still face this issue. Please share the following information which will be more helpful for further analysis and provide you the solution sooner.
Try to reproduce the reported scenario in the above sample
Please share the details of the package version used.
Share the details if you have done any other customization in your sample.
Let us know if you have any concerns.
Regards,
Srihari M
DIDishFebruary 26, 2020 08:16 AM UTC
Thank you Srihari! It works perfectly!
I have another question if you don't mind. I'm setting a value for the innerRadius property to make a donut chart but that value is getting applied to the Legend Shapes as well. So there is a small white dot inside legend shapes. Is there a way to disable the innerRadius only for Legend Shapes?
SMSrihari Muthukaruppan Syncfusion Team February 27, 2020 08:59 AM UTC
Hi Dish,
We have analyzed your query. From that, we would like to let you know that we can achieve your requirement by setting “loaded” event in the chart as mentioned in the below code snippet. Based on your requirement we have prepared a sample for your reference. Please find the below sample, code snippet and screenshot.