Labelling the axis

by aliceoneill » Mon Jun 26, 2017 1:22 pm

Hi, is it possible to label the chart axis? Thanks.
User avatar
aliceoneill
 
Posts: 11
Joined: Mon Dec 19, 2016 10:32 am

by Dmitry Kozlov » Tue Jun 27, 2017 12:03 pm

Yes, please, insert the code below to Dashboard -> Advanced tab:

Code: Select all
var handlers = {};
handlers.preRender = function(config, logger) {
 
  config.categoryAxis.title = {
    text: "Category Axis"
  }
 
  config.valueAxis.title = {
    text: "Value Axis"
  }
 
  logger.debug('Configuration: ', config);
  return true;
}
User avatar
Dmitry Kozlov
 
Posts: 129
Joined: Wed Nov 12, 2014 3:24 pm

by aliceoneill » Tue Jun 27, 2017 2:12 pm

Thank you Dmitry, that's fantastic.
User avatar
aliceoneill
 
Posts: 11
Joined: Mon Dec 19, 2016 10:32 am


Return to Dashboard Designer for SharePoint 2013

cron