Skip to content

Commit

Permalink
Add charts design example
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Nov 26, 2023
1 parent b18b54c commit 78d6ecb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Examples/Example-Charts/Example-ChartsDesign.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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

0 comments on commit 78d6ecb

Please sign in to comment.