Powershell – StackedColumn100 graph

Welcome Forums General PowerShell Q&A Powershell – StackedColumn100 graph

  • This topic has 1 reply, 2 voices, and was last updated 1 month ago by
    Participant
    .
Viewing 1 reply thread
  • Author
    Posts
    • #233722
      Participant
      Topics: 1
      Replies: 0
      Points: -27
      Rank: Member

      Hello,

      I was finally able to generate a StackedColumn100 graphic from powershell 🙂
      This is the result for two data series:

      Used space:
      $ProcessList = “A”,”B”,”C”,”D”,”E”,”F”,”G”,”H”,”I”,”J”,”K”,”L”,”M”,”N”,”O”,”P”,”Q”,”R”,”S”,”T”,”U”,”V”,”Z”,”X”
      $Placeholder = 142,130,147,143,156,47,28,148,110,120,107,117,133,142,119,111,146,124,152,90,126,147,148,161

      Free space:
      $ProcessList = “A”,”B”,”C”,”D”,”E”,”F”,”G”,”H”,”I”,”J”,”K”,”L”,”M”,”N”,”O”,”P”,”Q”,”R”,”S”,”T”,”U”,”V”,”Z”,”X”
      $Placeholder = 28,49,22,39,24,132,151,22,61,59,72,62,38,28,52,59,24,47,18,89,44,24,36,23

      This represent Used and Free space for Storage devices A,B,C…
      What I’m unable to figure out is how to print as labels the data from $placeholder and not the % value
      For example for the first column:
      A Used Space = 142
      A Free Space = 28
      142+28=170 (170 is 100%)
      Used space = 83.53% – printed as label
      Free space = 16.47% – printed as label

      Instead %83.53 & %16.47, I would like to print 142 and 28.
      I’ve used for each series .IsValueShownAsLabel = $true but this will display the %value and not the data value

      Thank you for any suggestion!

      https://photos.app.goo.gl/Q81LzbM3dknEQoECA

       

      Graph

    • #233734
      Participant
      Topics: 5
      Replies: 2372
      Points: 6,005
      Helping Hand
      Rank: Community MVP

      When you crosspost the same question at the same time to different forums you should at least post links to the other forums along with your question to avoid people willing to you help making their work twice or more.

      https://social.technet.microsoft.com/Forums/en-US/5e0a5ef7-9685-42c1-b05b-027283b4529b/powershell-stackedcolumn100-graph?forum=winserverpowershell

      Thanks

Viewing 1 reply thread
  • You must be logged in to reply to this topic.