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

Attr initialization for data-series-defaults-type

5 Answers 100 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 21 Sep 2012, 07:06 PM
I can't seem to initialize the chart's seriesDefaults.type property by using data attributes:

data-series-defaults-type="line"

Should this work, or am I doing something wrong?

5 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 25 Sep 2012, 01:23 PM
Hello Michael,

I have already replied to your support ticket which contained the same question, however I am pasting my answer here too so the other users who are interested in the same scenario can read it: 

In order to initialize the seriesDefaults property via the data attributes you can use the following: 

<div id="chart" data-role="chart" data-series-defaults="{ type: 'line' }" //...></div>

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Michael
Top achievements
Rank 1
answered on 25 Sep 2012, 01:30 PM
Great, thank you!!  I've been roaming through your documentation for lots of things in the past week, and I really don't remember seeing this at all, but maybe it's there somewhere.  I never would have even thought to try the syntax you gave.  Just as a suggestion, I would love to see the following added to your documentation for every single property and event on your objects:

-Whether declarative binding is supported (because I'm finding some give an error that they are not supported).
-A clear example of how to setup the declarative binding for that particular property/event.

Thanks again!
0
Iliana Dyankova
Telerik team
answered on 25 Sep 2012, 06:59 PM
Hi Michael,

Thank you for the feedback - we really appreciate it. As for the suggestions - we will definitely consider them. I agree that our documentation is not complete, however creating it is an ongoing process which is with high priority for us.  
 
Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Alex
Top achievements
Rank 1
answered on 21 Mar 2014, 03:41 PM
What about the documentation? This Thread is nearly 2 years old and I sill can't find any documentation about:
 data-role="chart"
 data-legend="{ position: 'bottom' }"
 data-series-defaults="{ type: 'line' }"
data-series....

BR,
Alex
0
Iliana Dyankova
Telerik team
answered on 21 Mar 2014, 04:13 PM
Hi Alex,

Please take a look at the following documentation topics which discuss Data Attribute Initialization in Kendo UI:

Regards,

Iliana Nikolova
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
Charts
Asked by
Michael
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Michael
Top achievements
Rank 1
Alex
Top achievements
Rank 1
Share this question
or