Functions/Charts/Add-BubbleChart.ps1
function Add-BubbleChart { [CmdletBinding()] param( [Parameter(Mandatory)] #[ValidateNotNullOrEmpty()] [System.Xml.XmlElement] $Svg , [Parameter(Mandatory)] [ValidateNotNullOrEmpty()] [array] $Data , [Parameter()] [ValidateNotNullOrEmpty()] [int] $LineWidth = 1 , [Parameter()] [ValidateNotNullOrEmpty()] [string] $LineColor = 'black' , [Parameter()] [ValidateNotNullOrEmpty()] [float] $LineOpacity = 0.75 , [Parameter()] [ValidateNotNullOrEmpty()] [string] $FillColor = 'black' , [Parameter()] [ValidateNotNullOrEmpty()] [float] $FillOpacity = 0.75 ) foreach ($item in $Data) { Add-SvgCircle $svg -CenterX $item.x -CenterY $item.y -Radius $item.z -LineColor $LineColor -LineWidth $LineWidth -LineOpacity $LineOpacity -FillColor $FillColor -FillOpacity $FillOpacity ++$ColorIndex } } |