present "label" option not available in Horizontal with bull

by aternoy » Mon Sep 19, 2016 11:27 am

Create a chart "horizontal with bullet", quite happy with the result.
Only issue is that I can have the tool tip with the value of the column, but not the value presented. Don't understand why?

Is it a limitation? or a piece of code to add in the handler?

screen shoot of the case:

Image
Last edited by aternoy on Tue Sep 20, 2016 8:56 am, edited 1 time in total.
aternoy
 
Posts: 20
Joined: Mon Jun 13, 2016 1:09 pm

by Yuriy Medvedev » Mon Sep 19, 2016 11:52 am

Please, reload image, couse I can`t open it, so I don`t see the problem`s details.
User avatar
Yuriy Medvedev
 
Posts: 6
Joined: Mon Aug 29, 2016 2:27 pm

by aternoy » Tue Sep 20, 2016 8:56 am

is it better ?
aternoy
 
Posts: 20
Joined: Mon Jun 13, 2016 1:09 pm

by Yuriy Medvedev » Tue Sep 20, 2016 11:48 am

Yes, It is better. But which field you want to see in tooltip?
User avatar
Yuriy Medvedev
 
Posts: 6
Joined: Mon Aug 29, 2016 2:27 pm

by aternoy » Tue Sep 20, 2016 1:49 pm

I already have the tooltip with value I want, no issue there
What I need is the value over the horizontal bar.
aternoy
 
Posts: 20
Joined: Mon Jun 13, 2016 1:09 pm

by Yuriy Medvedev » Thu Sep 22, 2016 9:52 am

Hi aternoy

We`ve found solution for this problem. You should go to Dashboard -> Advanced and add this script:
Code: Select all
var handlers = {};
handlers.preRender = function(config, logger) {
  logger.debug('Configuration: ', config);
  var data = config.series[0].data;
  var value = config.series[0].valueField;
  config.series.push({ field: value,
                       type: 'bar',
                       labels:{visible:true},
                       data: data}),
  return true;
}

But It works for a single series only!
User avatar
Yuriy Medvedev
 
Posts: 6
Joined: Mon Aug 29, 2016 2:27 pm

by aternoy » Thu Sep 22, 2016 10:39 am

Added and no change.
I guess it is because I have multiple series or should I change anything on the code you give above based on the column definition I have?
aternoy
 
Posts: 20
Joined: Mon Jun 13, 2016 1:09 pm

by Dmitry Kozlov » Mon Sep 26, 2016 11:28 am

Could you send a template of the source list and the chart's configuration (export it in Dashboard Designer) to support@spchart.com?
User avatar
Dmitry Kozlov
 
Posts: 129
Joined: Wed Nov 12, 2014 3:24 pm


Return to Dashboard Designer for SharePoint 2013