Comments (4)
from office-js-docs-reference.
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.
from office-js-docs-reference.
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)
- How best to implement SSO on Mobile Outlook? HOT 1
- Missing documentation for the Bibliography HOT 2
- hostName is incomplete, doesn't take into account New Outlook HOT 5
- OfficeTab element to be used with a custom tab defined by add-ins HOT 1
- Clarify Word API 1.1 Compatibility for Central Deployment HOT 2
- Colors in the docs don't match HOT 5
- Documentation has invalid sample code HOT 1
- DocCreated how to update fields, typically the table of content before save HOT 5
- Need unit of measure for rowHeight and columnWidth properties
- Grouping shapes from the PowerPoint API HOT 7
- Statud date HOT 3
- insertField type macrobutton giving error HOT 6
- Word.LineWidth enum HOT 5
- how to remove ListBullet HOT 6
- bold and italic text where cursor is clicked HOT 7
- Delete the entire row of table in word HOT 4
- I want if my cursor is in a table cell then clear its value? HOT 3
- Get After and before text from Table Cell. HOT 10
- how to check my table is inside a table cell HOT 4
- contentControl Delete error because office.js issue. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from office-js-docs-reference.