New Feature: Add Data Labels to Scatter Charts #420
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New feature to allow labels to be added on Scatter Charts. Should resolve issues #410 and #291
The following options are used for labelling scatter charts:
There are 3 different formats that the label can be set as, and defined using dataLabelScatterFormat:
For customXY and XY, the plot references are dynamic and will update if the underlying excel data is updated.
Data labels are applied to the Y-Values, and support multiple sets of data in the format.
You do not need to specify the labels object if using
dataLabelFormatScatter: XY
as only the values are used in the labels.If using
dataLabelFormatScatter: XY
every plot point will be labelled.If using
dataLabelFormatScatter: custom
ordataLabelFormatScatter: customXY
you can choose to label only some plot points by passing in a blank label. Useful when plotting a large number of points e.g.