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

Chart example dependencies?

3 Answers 203 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Bryan
Top achievements
Rank 1
Bryan asked on 07 Sep 2011, 02:56 PM
Hi:

I've been trying to get the Kendo chart example to work, and I've found that the source under "View Code" does not fully reproduce the chart that's shown on the page.  (Not attaching the code b/c I'm using a copy-paste of exactly the code from this page: http://demos.kendoui.com/chart/index.html)

The problem is with the tooltip; the chart renders properly, but on mouseover, the text for the tooltip only appears after the chart (and unformatted).  The console gives an "Uncaught TypeError: Cannot read property 'color' of undefined" once and then "Uncaught TypeError: Cannot read property 'series' of undefined" for each mouseover event on one of the bars.

A little cursory debugging (using the source of the working page) reveals that commenting out kendo.examples.js breaks the chart similarly -- perhaps there is some entanglement there?

Also possible that I'm doing something boneheaded, happy to get guidance in that case.

Also, FWIW, this is all on Linux, using both Chrome and Firefox 3.6.21.

Cheers,

--Bryan

3 Answers, 1 is accepted

Sort by
0
Accepted
Kamen Bundev
Telerik team
answered on 07 Sep 2011, 04:49 PM
Hello Bryan,

Since the Kendo Chart is not using CSS for its skins due to its SVG nature, in the demos we are setting a data key with the currently selected skin which is missing when the example is ran standalone. If you change:
theme: $(document).data("kendoSkin"),
to
theme: "kendo",
the example will start working. Thank you for noticing this, we will fix the demo with a default skin value in the next batch of changes.

Greetings,
Kamen Bundev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Bryan
Top achievements
Rank 1
answered on 07 Sep 2011, 10:20 PM
Thanks, that did indeed work. 
0
thiru
Top achievements
Rank 1
answered on 07 Oct 2011, 02:21 PM
Hi,

First time i am using kendo UI chart.
How to change the chart style like what we feel.For example,The default chart will displays horizontal and vertical line but i need to display dotted line instead of those lines.
Please help me  and thanks in advance.
Tags
Charts
Asked by
Bryan
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Bryan
Top achievements
Rank 1
thiru
Top achievements
Rank 1
Share this question
or