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

Graph datasource w group/subgroup in Razor syntax

1 Answer 126 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 13 Nov 2013, 09:24 PM
I have a datasource that I am trying to graph that looks like :

     @(Html.Kendo().Chart(Model)
        .Name("chart")
        .Title("Site Tag Values")
        .DataSource(dataSource => dataSource           
            .Group(group => group.Add(model => model.site))
            .Sort(sort => sort.Add(model => model.timeStamp).Ascending())
        )

How do I add a sub group to this Group setting? I want to add model.tag as the subgroup.  The online docs don't have the razor syntax for subgroups. 

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 15 Nov 2013, 04:13 PM
Hi Brian,

At this point Kendo UI Chart does not support multiple grouping, however you could try a custom implementation. For example in the dataSource change event pass the data to the series in the needed format.

Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Brian
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or