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

default theme

4 Answers 88 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Morten asked on 09 Jan 2015, 12:24 PM
I'm including the css below in my page, however, still have to set the theme explicitly to "bootstrap".

1. Am I missing a file?

"~/Content/kendo/kendo.common-bootstrap.css",
"~/Content/kendo/kendo.bootstrap.css",
"~/Content/kendo/kendo.dataviz.css",
"~/Content/kendo/kendo.dataviz.bootstrap.css",

4 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 09 Jan 2015, 12:39 PM

Hello Morten,

You are not missing a file; the chart themes must be set explicitly in order to change the theme, because the chart styles are rendered in SVG/VML elements or Canvas via JavaScript, rather than being styled via CSS. The CSS files are minimalistic and style only the HTML part of the chart (tooltips, navigator).

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 09 Jan 2015, 01:57 PM
Hi Alex
thanks for your reply.
Can I somehow set the theme at the site or page level, or must I set the theme for each chart (other widget)?
/Morten
0
Alex Gyoshev
Telerik team
answered on 12 Jan 2015, 08:37 AM

Hello Morten,

You can change the default options of all charts of the page, like this:

kendo.dataviz.ui.Chart.fn.options.theme = "black";

Here is a Dojo snippet that shows this in action. Note that this affects only the charts, not all dataviz widgets (i.e. you will need another line for the RadialGauge).

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 13 Jan 2015, 08:35 AM
thanks a lot
Tags
Charts
Asked by
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Alex Gyoshev
Telerik team
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Share this question
or