EvotecIT / PSWriteHTML

PSWriteHTML is PowerShell Module to generate beautiful HTML reports, pages, emails without any knowledge of HTML, CSS or JavaScript. To get started basics PowerShell knowledge is required.
MIT License
826 stars 106 forks source link

-LegendPosition parameter requires lower case argument in New-ChartLegend function (case sensitivity) #283

Closed n8-mills closed 2 years ago

n8-mills commented 2 years ago

I developed a solution using one of the "charts" examples, playing with the -LegendPosition parameter by inputting "Right" broke the chart output. After some trial and error it became clear that -LegendPosition is case sensitive. I recommend including .ToLower() for this parameter within the New-ChartLegend function.

PrzemyslawKlys commented 2 years ago

ye, there are probably a few more like that. Unfortunately, javascript is case sensitive so it has to be exactly as the author of the library wants it.