Curated Examples
Example Chartsdesign
Source-owned example maintained with PSWriteHTML.
- Source repository: https://github.com/EvotecIT/PSWriteHTML
- Example group:
Example-Charts
Import-Module .\PSWriteHTML.psd1 -Force
New-HTML -TitleText 'My title' -Online -FilePath $PSScriptRoot\Example-ChartsDesign.html {
New-HTMLSection -HeaderText 'Bar Charts - Test' -CanCollapse {
New-HTMLPanel {
New-HTMLChart {
New-ChartLegend -LegendPosition bottom -HorizontalAlign right -Color Red, Blue, Yellow -DisableOnItemHoverHighlightDataSeries -DisableOnItemClickToggleDataSeries
New-ChartAxisY -LabelMaxWidth 200 -LabelAlign left -Show -LabelFontColor Red, Blue, Green -TitleText 'This is title for y Axis' -TitleColor Red
New-ChartBarOptions -Distributed
New-ChartBar -Name 'Test very long' -Value 1
New-ChartBar -Name 'Test1' -Value 20
New-ChartBar -Name 'Test2 and even longer title' -Value 30
New-ChartDesign -GradientShade light -GradientType diagonal1 -GradientInverseColors
} -Title 'Testing Title' -TitleAlignment center -SubTitle 'Because SubTitles are better' -SubTitleAlignment center -SubTitleFontSize 30 -TitleColor Gold
}
}
} -Show