This is a migrated thread and some comments may be shown as answers.

Pie chart color remove overlay

3 Answers 254 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Dan asked on 23 Mar 2021, 12:29 PM

How can I remove the overlay on the pie chart. If you look at the demos you can see that the colors are the same as the ones defined, but when you try to edit it in a dojo the colors are not the ones defined. they have an overlay on top of them that contains a defined color of "url(https://runner.telerik.io/result#kdef1)".

Why does the dojo look different that the demo? How can the top overlay be removed?

3 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 26 Mar 2021, 09:39 AM

Hi Dan,

I looked at the Pie chart demo and opened it in a Dojo as well. The result looks the same to me:

Demo:

Dojo:

Nevertheless, the chart series gradient can be removed by setting the below property:

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart/configuration/seriesdefaults.overlay

seriesDefaults: {
    overlay: {
        gradient: "none"
    }
}

Here is a Dojo demonstrating this: https://dojo.telerik.com/ADUDEGoZ

Let me know if you have any questions.

Regards,
Nikolay
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 26 Mar 2021, 09:49 AM

Hi Nicolay,

For me the Bootstrap theme demo looks without the gradient and I looked also in the developer tools and the gradient tag is not generated.

But thanks you for the tip.

 

 

0
Nikolay
Telerik team
answered on 31 Mar 2021, 09:34 AM

Hello Dan,

Thank you for clarifying.

Indeed you are correct about the overlay being added in the Dojo with bootstrap themes. I will investigate and will follow up if there is a specific reason for this.

Regards,
Nikolay
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Charts
Asked by
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Nikolay
Telerik team
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Share this question
or