excel js addin XYScatter datalabels

Antonov, Viktor 20 Reputation points
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 viktor.antonov@arcadia.spb.ru /or/ viktor.antonov.v@gmail.com

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,477 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
872 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,508 questions
0 comments No comments
{count} votes

Accepted answer
  1. Emily Hua-MSFT 27,526 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