Stephanevg / PSHTML

Cross platform Powershell module to generate HTML markup language
https://pshtml.readthedocs.io/en/latest/
Other
167 stars 43 forks source link

New-PSHTMLBarChartDataSet hover doesn't work when parameter bordercolor not set is #228

Closed Stephanevg closed 5 years ago

Stephanevg commented 5 years ago

When called without the parameter "BorderColor" set, the value generated in the JavascriptCode is set to 'null' for bordercolor.

This is not allowed on the chartjs side, and wil break the hovering experience. It doesn't accept null, but it accepts an empty string ```""```` .

The thing to do, really, is to set a default parameter on the BorderColor of the function to "".

Stephanevg commented 5 years ago

Will be fixed in upcoming version