Jump to content
Software FX Community

out-chart with a large number of labels


Recommended Posts

I'm creating a chart with a large number of values for a label.

Think of something like: "ps|out-chart -label processname -values cpu"

Is there any kind of formatting features I can use for the labels?  Like rotating them to a 45 degree angle or using a "force" option to make sure I see all the labels (even if there might be "collisions" or overlaying).

(Maybe I'll have to implement the drilldown feature...)

Link to comment
Share on other sites

There are several properties for the labels to play with, obviously these can be combined. This is an interesting topic so we will probably add a blog post in the future.

- Affect how much vertical space the X axis can use, note that we may sill hide some labels if we consider the labels will overlap with each other.
ps | out-chart -label ProcessName -values cpu -axisx_MaxSizePercentage 50

- Force all labels to be shown, note that we have an algorithm that selects whether we should set the labels at 45 or 90 degrees, by setting the Step property you assume responsibility of selecting the angle
ps | out-chart -label ProcessName -values cpu -AxisX_Step 1 -AxisX_LabelAngle 90

- Change the font
ps | out-chart -label ProcessName -values cpu -AxisX_Font "Tahoma, 6"

Note that if you incorporate our tab-completion improvements, you will be able to quickly browse through many interesting properties by typing
out-chart -axisX_<TAB>



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...