Skip to content

Chart data labels validation#790

Closed
ReimaFrgos wants to merge 2 commits intogitbrent:masterfrom
ReimaFrgos:ChartDataLabelsValidation
Closed

Chart data labels validation#790
ReimaFrgos wants to merge 2 commits intogitbrent:masterfrom
ReimaFrgos:ChartDataLabelsValidation

Conversation

@ReimaFrgos
Copy link
Contributor

@gitbrent this PR replaces #789 and updates the ./src/*.ts files instead.

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 top 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.

@ReimaFrgos ReimaFrgos mentioned this pull request Jul 5, 2020
@ReimaFrgos ReimaFrgos closed this Jul 6, 2020
@ReimaFrgos ReimaFrgos deleted the ChartDataLabelsValidation branch July 6, 2020 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant