marco.shaw Posted February 28, 2007 Report Share Posted February 28, 2007 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...) Quote Link to comment Share on other sites More sharing options...
JuanC Posted March 1, 2007 Report Share Posted March 1, 2007 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 angleps | out-chart -label ProcessName -values cpu -AxisX_Step 1 -AxisX_LabelAngle 90 - Change the fontps | 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 typingout-chart -axisX_<TAB> Regards, JuanC Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.