Jump to content
Software FX Community

out-chart


DungKHoang
 Share

Recommended Posts

Although we support expressions in almost any parameters in out-gauge, we do not support them in out-chart yet. We will investigate if we can include this functionality for V1 but in the meantime you can use the following workaround.

1) import-csv employees.csv | select {[int]$_.Age*2},{"Mr or Mrs "+$_.Name} | out-chart

We are using the select command to create 2 new calculated properties. In order to get a numerical value we had to cast $_.Age to an integer as import-csv returns all fields as strings. Also note that out-chart will not automatically pick up the labels (something we expect to fix in future builds) and the title for the series will be the expression.

2) import-csv employees.csv | select @{Expression={[int]$_.Age*2};Name="CorrectedAge"},@{Expression={"Mr or Mrs "+$_.Name};Name="CorrectedName"} | out-chart -values CorrectedAge -label CorrectedName

We are now using a powershell feature that allows us to attach a symbolic name to each calculated expression, note that there is a bug in out-chart (already fixed in our internal build) that will make it ignore the CorrectedName property. This will be fixed in our next public build.

Regards,

JuanC

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.

Guest
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.

 Share

×
×
  • Create New...