Chart Placement #213
Answered
by
PrzemyslawKlys
swordfish291
asked this question in
Q&A
Replies: 1 comment
-
# Define data
$DataTable = @(
[PSCustomObject] @{
Name = 'My Object 1'
Time = 1
Money = 5
Taxes = 20
}
[PSCustomObject] @{
Name = 'My Object 2'
Time = 3
Money = 1
Taxes = 5
}
[PSCustomObject] @{
Name = 'My Object 3'
Time = 12
Money = 5
Taxes = 1
}
)
# Define HTML
New-HTML {
New-HTMLSection {
for ($i = 0; $i -le 5; $i++) {
New-HTMLChart {
New-ChartToolbar -Download
foreach ($Object in $DataTable) {
New-ChartPie -Name $Object.Name -Value $Object.Time
}
}
}
} -Direction column
} -ShowHTML -FilePath $PSScriptRoot\Example-ChartsWithTablesPie.html -Online #-Format There seems to be some issue with margins for the first chars - need to look at this |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
PrzemyslawKlys
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
How to make sure Charts get placed above each other which are being created using a loop. Currently I am placing them in a section but all the charts are being placed next to each other making the lines unreadable.
Beta Was this translation helpful? Give feedback.
All reactions