Fix. Account for line style = "none". Closes #91.#99
Open
trekonom wants to merge 4 commits intoardata-fr:masterfrom
Open
Fix. Account for line style = "none". Closes #91.#99trekonom wants to merge 4 commits intoardata-fr:masterfrom
trekonom wants to merge 4 commits intoardata-fr:masterfrom
Conversation
* Add none_as_empty= argument to ooxml_fp_border * Add wrap_in_tags helper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Hi David and Eli,
just in case you find the time. This PR proposes a fix for - the not very well reported - issue #91 .
Using the current CRAN and dev version setting the line style in a
ms_linechartto"none"viachart_data_line_styledoes not work. Instead we get a solid line with the default settings for color, ....:The issue is that currently an empty string is "added" for lines with a "none" style:
mschart/R/utils.R
Lines 51 to 53 in b69fbf6
instead of the required
"<c:spPr><a:ln><a:noFill/></a:ln></c:spPr>"as is already done inmschart/R/to_pml.R
Line 81 in b69fbf6
when the style of the linechart is set globally using e.g.
chart_settings(x, style = "marker").The proposed fix adds a
none_as_emptyargument toooxml_fp_borderso that one can choose between having an empty string (where this is fine) or a<a:ln><a:noFill/></a:ln>for a "none" style.Using the proposed fix we get the correct result: