Combining 2 data sources into 1 chart

by david.castaño-aristizabal » Wed Jul 01, 2015 8:09 pm

Hi Dmitry, is there a way to combine 2 data sources into 1 chart as separate series?
User avatar
david.castaño-aristizabal
 
Posts: 18
Joined: Wed Apr 15, 2015 3:49 pm

by Dmitry Kozlov » Tue Jul 07, 2015 10:44 am

Hi David,
Yes, you can combine multiple data sources with the help of JavaScript handlers:
http://www.spchart.com/documentation/data-source/advanced

Please, note that all handlers may return a deferred-object. This means that you can request additional data either via REST or another protocol through JavaScript asynchronously and combine all the data into the data object. Next, when the data is prepared, call resolve method of the deferred-object:
https://api.jquery.com/category/deferred-object/
User avatar
Dmitry Kozlov
 
Posts: 129
Joined: Wed Nov 12, 2014 3:24 pm

by david.castaño-aristizabal » Fri Jul 10, 2015 5:47 pm

Do you have a sample code that I can use?
User avatar
david.castaño-aristizabal
 
Posts: 18
Joined: Wed Apr 15, 2015 3:49 pm

by Dmitry Kozlov » Wed Aug 19, 2015 2:39 pm

User avatar
Dmitry Kozlov
 
Posts: 129
Joined: Wed Nov 12, 2014 3:24 pm


Return to Dashboard Designer for SharePoint 2013

cron