Edit this page

The Custom Theme that Is Created by Using SASS ThemeBuilder Doesn't Affect Charts

Environment

Product Progress Kendo UI Charts for ASP.NET MVC
Operating System All
Visual Studio version All
View Engine Razor

Description

I created a new SASS theme by using the Kendo UI ThemeBuilder tool, downloaded it, and added a reference to it in my Layout.cshtml file. The theme works as expected for the whole application but it doesn't affect the Charts even though I chose new colors for the series.

Cause

The Charts require you to set a custom property before they recognize the new styles.

Solution

Set the theme property of the Kendo UI Charts to "sass".

@(Html.Kendo().Chart()
  .Name("bar")
  .Theme("sass")

See Also

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy