Skip to content
Permalink
Browse files

Fixed issue with double script tag in chart

  • Loading branch information...
Stephanevg committed Aug 1, 2019
1 parent ed371c2 commit aba6d359e746a661fb9db3eaf53d09514d9b5da5
Showing with 15 additions and 7 deletions.
  1. +7 −3 Code/Functions/Public/New-PSHTMLChart.ps1
  2. +8 −4 PSHTML/PSHTML.psm1
@@ -46,8 +46,8 @@ Function New-PSHTMLChart {
[Parameter(Mandatory=$False)]
[String]$Title,

[ChartOptions]$Options,
[switch]$tobase64 = $false
[ChartOptions]$Options
#[switch]$tobase64 = $false

)

@@ -133,8 +133,11 @@ Function New-PSHTMLChart {
$ChartOptions.animation.onComplete = 'RemoveCanvasAndCreateBase64Image'
}
$Chart.SetOptions($ChartOptions)
$Chart.GetDefinition($CanvasID)


<#
Chunk ready for 8.1
if ($tobase64) {
script -content {
$Chart.GetDefinition($CanvasID,$true)
@@ -144,6 +147,7 @@ Function New-PSHTMLChart {
$Chart.GetDefinition($CanvasID)
} -Id "pshtml_script_chart_$CanvasID"
}
#>


}
@@ -1,4 +1,4 @@
#Generated at 08/01/2019 09:17:02 by Stephane van Gulick
#Generated at 08/01/2019 10:12:28 by Stephane van Gulick

Enum SettingType {
General
@@ -6738,8 +6738,8 @@ Function New-PSHTMLChart {
[Parameter(Mandatory=$False)]
[String]$Title,

[ChartOptions]$Options,
[switch]$tobase64 = $false
[ChartOptions]$Options
#[switch]$tobase64 = $false

)

@@ -6825,8 +6825,11 @@ Function New-PSHTMLChart {
$ChartOptions.animation.onComplete = 'RemoveCanvasAndCreateBase64Image'
}
$Chart.SetOptions($ChartOptions)
$Chart.GetDefinition($CanvasID)


<#
Chunk ready for 8.1
if ($tobase64) {
script -content {
$Chart.GetDefinition($CanvasID,$true)
@@ -6836,6 +6839,7 @@ Function New-PSHTMLChart {
$Chart.GetDefinition($CanvasID)
} -Id "pshtml_script_chart_$CanvasID"
}
#>


}

0 comments on commit aba6d35

Please sign in to comment.
You can’t perform that action at this time.