excel js addin XYScatter datalabels

Anonymous
2023-02-26T21:18:30.4266667+00:00

hello.

let me describe my situation:

1 i have an XYScatter chart in my excel js addin

2 and i need to add data labels to some of points in that chart

3 and here i have a problem - i do not understand how to set up that datalabels.

in my attemptions to solve it i had use this page https://learn.microsoft.com/en-us/javascript/api/excel/excel.chartdatalabels?view=excel-js-preview

and MS script lab for excel

please look at images below, it is my attemptions to turn on displaying of any possible data but in any way i'm getting y axis data or no data at all. also in script lab i found only one example of datalabels and in my case it does not work.

but anyway documentations says that I shall have possibility to display plenty of data and not just y axis value. could you please clarify to me what I'm doing wrong or what I misunderstanding in documentation and please give me a hand with my main task - display some custom text as data label

1

2

3

4

5

6

7

8

best regards, Viktor

my emails ******@arcadia.spb.ru /or/ ******@gmail.com

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. Emily Hua-MSFT 27,881 Reputation points
    2023-02-27T04:38:42.8133333+00:00

    Hi @Antonov, Viktor

    Welcome to Q&A forum ~

    As your issue is related to Excel add-ins development, to help you better, I also suggest you post new threads on other forums of following link.

    Excel add-ins developer community


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.