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

I need a bit of help defining a schema

2 Answers 69 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Bradley
Top achievements
Rank 1
Bradley asked on 16 Dec 2011, 09:07 PM
Here is the output of the jsonp from the webservice I am calling (I have removed a bunch of extraneous data but maintained the overall structure).  I'm only interested the "SubRows" grouping.  I'd like to break out visits (y-axis) by start-date (x-axis) in a line chart.  How would I represent the schema for this datasource?

"data" : [
{
 "YttQZfDcyK6" :
 { 
  "measures" :
  { 
     "Visits" : 22214391
  } ,
  "SubRows" : [ 
  {
   "start_date" : "2011-01-01",
   "measures" :
   {
    "Visits" : 605521
   } ,
   "SubRows" : null
  },  
  { 
   "start_date" : "2011-01-02" ,
   "measures" :
   {
    "Visits" : 672939 
   } ,
   "SubRows" : null
  } ]
 }
} ]

Thanks ahead of time.

2 Answers, 1 is accepted

Sort by
0
Bradley
Top achievements
Rank 1
answered on 19 Dec 2011, 06:46 PM
So I did a bit of research and found that you can access nested portions of your jsdonp output using the dot operator (e.g. person.address).  This works for a kendoGrid but the same logic does not seem to function in a kendoChart.

Is there another way to access nested data for a chart?

Thank you.
0
Bradley
Top achievements
Rank 1
answered on 27 Dec 2011, 07:30 PM
Am I missing something easy or is this not supported?
Tags
Data Source
Asked by
Bradley
Top achievements
Rank 1
Answers by
Bradley
Top achievements
Rank 1
Share this question
or