How Can I dynamically add the chart Title

by lijupnandanan » Mon Oct 03, 2016 12:00 pm

Hi,
I have a cross site chart on a subsite. I need to display the name as current web title. How Can I set this?
Attachments
Chart1.JPG
Chart Title Dynamically
Chart1.JPG (65.84 KiB) Viewed 324 times
lijupnandanan
 
Posts: 11
Joined: Thu Sep 01, 2016 5:04 am

by YuriyMedvedev » Mon Oct 03, 2016 12:24 pm

Hi! You can do it if you put this script in Dashboard->Advanced:
Code: Select all
var handlers = {};
handlers.preRender = function(config, logger) {
  logger.debug('Configuration: ', config);
  var title = _spPageContextInfo.webTitle;
  config.title.text = title;
  return true;
}
YuriyMedvedev
 
Posts: 14
Joined: Mon Sep 26, 2016 3:05 pm

by lijupnandanan » Mon Oct 03, 2016 12:35 pm

Thank You YuriyMedvedev :)
lijupnandanan
 
Posts: 11
Joined: Thu Sep 01, 2016 5:04 am


Return to Dashboard Designer for SharePoint 2013