Skip to content

Issues 788+768 - Validate dataLabelPosition is valid for charts#794

Closed
ReimaFrgos wants to merge 1 commit intogitbrent:masterfrom
ReimaFrgos:788+768-DataLabelValidation
Closed

Issues 788+768 - Validate dataLabelPosition is valid for charts#794
ReimaFrgos wants to merge 1 commit intogitbrent:masterfrom
ReimaFrgos:788+768-DataLabelValidation

Conversation

@ReimaFrgos
Copy link
Contributor

@gitbrent this PR replaces #789 and updates the ./src/*.ts files instead.
(This is a resubmit because of a config issue)

Edits will override user actions with default settings if they try to enter an invalid input for either a dataLabelPosition or barGrouping value. barGrouping affects valid data labels which is why this is included.

This should resolve errors raised in:
#788 #768

It should also resolve issues relating to Office Online usage.

I have removed redundant validation that is no longer required when inserting the dataLabelPosition string

Have built the library through npm scripts > ships and outputted .js file runs successfully against all demo scripts. There is one minor change to bubble chart behaviour as seen in the Bubble Chart demo on Slide 15, bottom left. The data labels shift from center to right as per default MS Office behaviour. This could be addresses by either tweaking the edit to default this to Center, or update the demo too set the position to center depending on how sever you consider this impact.

@gitbrent
Copy link
Owner

gitbrent commented May 9, 2021

Closing: Superseded by Pull #938

@gitbrent gitbrent closed this May 9, 2021
@gitbrent gitbrent added this to the 3.7.0 milestone May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants