marco.shaw Posted February 25, 2007 Report Share Posted February 25, 2007 Something simple like: $a=@{canada="1,2,3"} Even after running get-member to determine the name of the properties, this won't work:$a|out-chart -label keys -values values Actually, I'm wanting to do something like this, and am wondering if it might actually work somehow: $a|out-chart -label keys -values $a["canada"].split(',')[0],$a["canada"].split(',')[1],$a["canada"].split(',')[2] If not, I'll have to set off in a different direction... Quote Link to comment Share on other sites More sharing options...
JuanC Posted February 26, 2007 Report Share Posted February 26, 2007 We do not have any code in PowerGadgets that would allow you to retrieve data from a hashtable. this sounds interesting for future builds but I see at least the following options - If there is 1 value per key, use the keys as labels and plot the values- If there are arrays as values, we could treat each key/array as a series or each value in the array as a different series.- Should we also handle if there are complex objects in the hash? At this point, if you need the hash because you need to "consolidate" values, you will have to loop through your hash and create objects and then pass an array/list of these objects to out-chart. JuanC Quote Link to comment Share on other sites More sharing options...
marco.shaw Posted March 1, 2007 Author Report Share Posted March 1, 2007 Thanks. I ended up looping through the values, and creating an object for each. 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.