Code Monkey home page Code Monkey logo

Comments (4)

plmayfield avatar plmayfield commented on July 28, 2024 1

from office-js-docs-reference.

AlexJerabek avatar AlexJerabek commented on July 28, 2024

Hi @plmayfield,

This is a weird TypeScript nuance. The title property is read-only, but it's fields aren't. You can set the fields, but not the ChartTitle object (you can't set it this way: chart.axes.valueAxis.title = {text: "Title"}; The charts property on the Worksheet is another example of this. You can certainly work with the charts, but not set a new ChartCollection object right there.

Some primative properties are read-only, like Chart.standardHeight. Those can't be directly changed either, but also don't have any subfields to be concerned with.

Does that all make sense?

from office-js-docs-reference.

plmayfield avatar plmayfield commented on July 28, 2024

from office-js-docs-reference.

AlexJerabek avatar AlexJerabek commented on July 28, 2024

Hi @plmayfield,

I completely understand the C# -> JS/TS confusion; that was me a year ago. The book mentioned at the end of this resources page was pretty helpful for me.

Your best bet for coding questions is asking them over at Stack Overflow with the tag "office-js". The community, as well as our experts, can help you out and the whole community can benefit from the answers.

As for your particular question, it might be that particular chart type doesn't support data labels. The property itself isn't read-only, so it should be settable. If you think you found a bug, please file an issue on the office-js repo](https://github.com/OfficeDev/office-js). You can always rapidly test office-js code with Script Lab to debug.

I'm going to close this issue, but please comment on thread if you have further questions. Please open a new issue if you do find some problems with the documentation.

from office-js-docs-reference.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.