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