proxb / poshcharts Goto Github PK
View Code? Open in Web Editor NEWModule designed to make working with .Net Chart Controls easier
License: MIT License
Module designed to make working with .Net Chart Controls easier
License: MIT License
I cannot clone the project using Git Gui on Windows:
remote: Not Found
fatal: repository 'https://github.com/proxb/PoshCharts/tree/Dev/' not found
Reproduced as follows
gwmi -class win32_PerfFormattedData_PerfProc_Process -Filter "Name != '_Total' AND Name != 'idle' AND PercentProcessorTime != '0'" | Select Name, @{N='ProcTime';E={$_.PercentProcessorTime}} | Out-BarChart -XField Name -YField ProcTime
Error
168,13 Excetion calling "DataBindXY" with "2" argument(s) "Series data points do not support values of type System.Management.Automation.PSObject only values of these types can be used: Double, Decimal, Single, int, long, uint, ulong, String, DateTime, short, ushort.
As discussed in #11
Invoke-WebRequest -Uri "http://data.githubarchive.org/2015-01-01-12.json.gz" -OutFile githubarchive2012-01-01-12.json.gz"
Install-Module PS7Zip -Repository PSGallery -Scope CurrentUser
Set-ExecutionPolicy RemoteSigned -CurrentUser
Import-Module PS7Zip
Expand-7Zip .\githubarchive2012-01-01-12.json.gz
$data = Get-Content .\githubarchive2012-01-01-12.json | ConvertFrom-Json
Import-Module .\PoshCharts.psm1
$plottable = $data | group type;
$legend = $plottable | select -ExpandProperty name
$plottable | Out-ColumnChart -XField Name -YField Count -IncludeLegend -LegendText $legend -Title "# of Events"
# Should not throw error - fails
Index operation failed; the array index evaluated to null.
At C:\source\PoshCharts\PoshCharts\Functions\Public\Out-ColumnChart.ps1:172 char:21
- ... $chart.Series[$SeriesLabel].LegendText = $LegendText[($i- ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : NullArrayIndex
$data | group type | Out-AreaChart -XField Name -YField Count -IncludeLegend -LegendText $legend -Title "# of Events"
# Should not throw error - fails
Index operation failed; the array index evaluated to null.
At C:\source\PoshCharts\PoshCharts\Functions\Public\Out-AreaChart.ps1:172 char:21
- ... $chart.Series[$SeriesLabel].LegendText = $LegendText[($i- ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : NullArrayIndex
$data | group type | Out-BarChart -XField Name -YField Count -IncludeLegend -LegendText $legend -Title "# of Events"
# Should not throw error - fails
Index operation failed; the array index evaluated to null.
At C:\source\PoshCharts\PoshCharts\Functions\Public\Out-BarChart.ps1:172 char:21
- ... $chart.Series[$SeriesLabel].LegendText = $LegendText[($i- ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : NullArrayIndex
etc.
@proxb , we can split this into two tasks... just tell me which one you would want to tackle
I don't know if easily done but wouldn't it be nice to include following C# library?
beto-rodriguez/Live-Charts repo
http://lvcharts.net/
Many thanks
There is too much copy-pasting across the various functions and it makes it hard to quickly read each chart and debug. Plus, this function is not documented so it takes a moment to understand what it does.
Also, there are more generic implementations of a ConvertTo-Hashtable we could use rather than roll our own.
Please see: https://gist.github.com/dlwyatt/4166704557cf73bdd3ae
Some inspiration from KeyLines: https://cambridge-intelligence.com/visualizing-stack-overflow/
My previous Issue #10 was getting highly repetitive, and I wanted a way to parameterize my test cases and make them more efficient. Plus, I still haven't bothered learning Pester yet.
Feature 1 - Chart Type
Feature 2 - With or without legend
GitHubArchive stores all the public events from the GitHub timeline and exposes them for processing. The events contain info about the repositories, so you should be able to pull the data out of there to fit your use-case.
I am inspired by Sourcer.IO, but I do not trust them with my login details, so I thought it would be cool if some test cases also served as an interactive tutorial.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.