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",
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
0
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
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
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