# Graph in CSV

**URL:** <https://forums.powershell.org/t/graph-in-csv/6891>\
**Category:** PowerShell Help\
**Created:** [July 27, 2016, 12:48pm UTC](https://forums.powershell.org/t/graph-in-csv/6891 "2016-07-27T12:48:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkata-kalyan](https://avatars.discourse-cdn.com/v4/letter/v/b3f665/32.png) [@venkata-kalyan](https://forums.powershell.org/u/venkata-kalyan)\
**Post date:** [July 27, 2016, 12:48pm UTC](https://forums.powershell.org/t/graph-in-csv/6891/1 "2016-07-27T12:48:08Z")

</div>

Hi,  
I have CSV file with four columns.  
Date time computer timetaken  
12/1/2016 11:45 abc 1324  
12/2/2016 12:15 bca 5567  
12/3/2016 14:06 abc 4446  
12/4/2016 17:59 bca 35789  
12/5/2016 1:00 van 1256  
12/6/2016 13:56 nav 6598  
12/7/2016 14:35 van 4478

I want graph for time, computer & timetaken.

I wrote code in VB, but it is getting me only time & time-taken.  
Can someone help me in powershell to get grap for time, computer, timetaken?

-Kalyan

---

<div class="post-metadata">

**Author:** ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)\
**Post date:** [July 28, 2016, 6:38am UTC](https://forums.powershell.org/t/graph-in-csv/6891/2 "2016-07-28T06:38:56Z")

</div>

I’m assuming you’re using Excel, and not a CSV file per se. And what you’re talking about is Excel Automation. Unfortunately, PowerShell doesn’t have any special abilities for Excel. It would have to use the same thing that you’re using in VB. Personally, I prefer not to mess with Excel Automation, as I find it complex and finicky. I prefer to use SQL Server Reporting Services for this kind of thing, since it’s much easier (for me) and more reliable. We have a free ebook called “Ditch Excel” on our eBooks menu, and you may find that helpful.

---

<div class="post-metadata">

**Author:** ![venkata-kalyan](https://avatars.discourse-cdn.com/v4/letter/v/b3f665/32.png) [@venkata-kalyan](https://forums.powershell.org/u/venkata-kalyan)\
**Post date:** [July 28, 2016, 8:30am UTC](https://forums.powershell.org/t/graph-in-csv/6891/3 "2016-07-28T08:30:44Z")

</div>

Hi,  
Thanks. Will have a look.

-Kalyan

---

<div class="post-metadata">

**Author:** ![dan-potter](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/dan-potter/32/138_2.png) [@dan-potter](https://forums.powershell.org/u/dan-potter)\
**Post date:** [July 28, 2016, 8:53am UTC](https://forums.powershell.org/t/graph-in-csv/6891/4 "2016-07-28T08:53:46Z")

</div>

Doug Finke wrote some really cool excel graphing stuff.

> **[Introducing the PowerShell Excel Module](https://devblogs.microsoft.com/scripting/introducing-the-powershell-excel-module-2/)**
>
> Summary: Guest blogger, Doug Finke talks about his PowerShell Excel module. The PowerShell Excel Module is a brand new, exciting, and better way to interact with Microsoft Excel from Windows PowerShell. Plus for bonus points, you don’t need Excel...

---

<div class="post-metadata">

**Author:** ![rob-simmers](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/rob-simmers/32/1010_2.png) [@rob-simmers](https://forums.powershell.org/u/rob-simmers)\
**Post date:** [July 29, 2016, 9:39am UTC](https://forums.powershell.org/t/graph-in-csv/6891/5 "2016-07-29T09:39:40Z")

</div>

Just thought it should be mentioned that you don’t NEED Excel per se. You can also use .NET chart controls and save charts as images to inject into emails. It would depend on what format you are going to provide the report in. I have built charts manually in Excel to get a general idea of what is contained in the chart. Take a look at this:

> **[Tutorial: PowerShell and Microsoft Chart Controls (or How To Spice Up Your...](https://bytecookie.wordpress.com/2012/04/13/tutorial-powershell-and-microsoft-chart-controls-or-how-to-spice-up-your-reports/)**
>
> As admins, we are used to digging through heaps of monochrome, barely formatted data, searching, selecting, sorting, filtering, until we got what we were looking for. That’s our job, that’s how we …

---

<div class="post-metadata">

**Author:** ![dan-potter](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/dan-potter/32/138_2.png) [@dan-potter](https://forums.powershell.org/u/dan-potter)\
**Post date:** [July 29, 2016, 1:35pm UTC](https://forums.powershell.org/t/graph-in-csv/6891/6 "2016-07-29T13:35:49Z")

</div>

I was going to say that but thought it may be a little over his head.

I can’t picture this data in a chart. All the values are unique except the computername.

---

<div class="post-metadata">

**Author:** ![venkata-kalyan](https://avatars.discourse-cdn.com/v4/letter/v/b3f665/32.png) [@venkata-kalyan](https://forums.powershell.org/u/venkata-kalyan)\
**Post date:** [August 1, 2016, 10:44am UTC](https://forums.powershell.org/t/graph-in-csv/6891/7 "2016-08-01T10:44:20Z")

</div>

Thanks all.

-Kalyan

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:40pm UTC](https://forums.powershell.org/t/graph-in-csv/6891/8 "2024-05-16T20:40:49Z")

</div>

Closed on May 16, 2024, 8:40pm UTC


