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

Disable tooltip gradients.

2 Answers 188 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Jos
Top achievements
Rank 1
Jos asked on 29 Aug 2013, 07:58 AM
Hello,

I wonder how I can disable the gradient for tooltips.
I know I can disable chart gradients by setting:
seriesDefaults: { overlay: {gradient: null} }
But this doesn't work for tooltips.

Any advice would be greatly appreciated.

2 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 29 Aug 2013, 01:55 PM
Hello Jos,

You could achieve this using the following CSS rule:

<style>
.k-chart .k-tooltip{
   background-image: none;
}
</style>
Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jos
Top achievements
Rank 1
answered on 01 Sep 2013, 01:21 PM
Thanks!

This solution works. I just needed to add the !important attribute.

.k-chart .k-tooltip {
    background-image: none !important;
}

But this probaply has to do with the order in which the css files are loaded.
Tags
Charts
Asked by
Jos
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Jos
Top achievements
Rank 1
Share this question
or