Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create PieChart with Parameter Gradient results error messages (InverseColors) #42

Closed
ferwe opened this issue Sep 18, 2019 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@ferwe
Copy link
Contributor

ferwe commented Sep 18, 2019

Hey there

I figured out, that there is a problem with pie charts.

 Panel {
                    Chart -Title "Tickets nach Eingangsdatum" {
                        New-ChartPie -Name 'Tickets 0 - 15 Days'    -Value $Object.Tickets.TicketCount0To15days.Count   -Color Green
                        New-ChartPie -Name 'Tickets 15 - 30 Days'   -Value $Object.Tickets.TicketCount15To30days.Count  -Color Orange
                        New-ChartPie -Name 'Tickets 30 - 50 Days'   -Value $Object.Tickets.TicketCount30To50days.Count  -Color OrangeRed
                        New-ChartPie -Name 'Tickets older 50 Days'  -Value $Object.Tickets.TicketCount50To100days.Count -Color Red
                    }
                }

If I use this code the following error Message results

true : The term 'true' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Program Files\WindowsPowerShell\Modules\PSWriteHTML\0.0.52\PSWriteHTML.psm1:1660 char:32
+             inverseColors    = true
+                                ~~~~
    + CategoryInfo          : ObjectNotFound: (true:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

The issue comes from a missing $ before "true" for the property "inverseColors" in psm1
There are multiple positions where this issue comes up.
I will fix this stuff and create a Pull Request.

Cheers

@ferwe ferwe changed the title Create PieChart with Parameter Gradient results error messages Create PieChart with Parameter Gradient results error messages (InverseColors) Sep 18, 2019
@PrzemyslawKlys
Copy link
Member

ye, sorry for that. I thought I tested it and it worked. It needs fixing in two places.

  • New-ChartInternalGradient
  • New-ChartInternalRadialType1

@PrzemyslawKlys PrzemyslawKlys added the bug Something isn't working label Sep 18, 2019
@ferwe
Copy link
Contributor Author

ferwe commented Sep 18, 2019

No worries.
I will have a look into it.
The module is awesome ;D

@ferwe
Copy link
Contributor Author

ferwe commented Sep 20, 2019

Fixed in Pull Request #43

@ferwe ferwe closed this as completed Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants