cancel
Showing results for 
Search instead for 
Did you mean: 

Show chart data labels via button selection

former_member18062
Product and Topic Expert
Product and Topic Expert
0 Kudos
126

Hi,

Im using Design Studio 1.6 and I've implemented the following in a button:

CHART_X.showDataLabels(true);

However, when the button is selected, in addition to showing the Data Labels, it also enables the Legend for the chart (which I've disabled).

Is there a way to also disable the legend via a button?

Thanks,

View Entire Topic
Former Member
0 Kudos

Hi Brian,

I've tried replicating your scenario, and when I show the Data Labels through the showDataLabels(true) method, it displays only the Data Labels, and the Legend, which I have disabled, remains hidden.

I'm on Design Studio 1.6 SP2.

However, you could force the legends to remain hidden, through CSS. You could add the following script to your CSS file.

.v-m-legends

{

  display:none;

}

Hope this satisfies your requirement.

Regards,

Anuraag

former_member18062
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks for the tip Anuraag,

After reading your reply, I checked on my version and it appears I was using Design Studio 1.6 SP1 Patch 2. 

After some testing, I decided to upgrade to your same release SP02 which looks to have resolved the issue.