Fix. Account for line style = "none". Closes #91. #99
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_linechart
to"none"
viachart_data_line_style
does 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_empty
argument toooxml_fp_border
so 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: