Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4041

Dynamic tooltips/data label through script?

$
0
0

  Hi all,

 

Is there a way to change the data labels and/or tooltips from a chart through script or other dynamic method?

 

Starting with a stacked bar chart where you show absolute values in the data label and % in the tooltip, I want to change the chart type according to the users choice, which is easily achievable through “.setChartType()”, the problem is that if you want to define tooltip or datalabel format you’ll only be able to define one format.

 

This is limiting, for example, in the case where percentages are showing as 0 or 1, because you defined the original format to absolute values. (see examples below):

    

Original  bar chart:

1.jpg

2.jpg
Changes to pie chart through script:

3.jpg

4.jpg

 

    Br,

  João Cavaco


Viewing all articles
Browse latest Browse all 4041

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>