Skip to Content

Show chart data labels via button selection


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


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?


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 23, 2016 at 04:02 AM

    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.





    Hope this satisfies your requirement.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.