Created
November 26, 2014 13:00
-
-
Save constructor-igor/18e88b456833f3dc9d7f to your computer and use it in GitHub Desktop.
powershell: google chart api sample (small numbers, scaling)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# sample: | |
#$title = "MyChart" | |
#$size = "700x350" | |
#$url = CreateChartUrl $valueArray $labelArray $title $size | |
# | |
function CreateChartUrl ($valueArray, $labelArray, [string]$title, $size) { | |
$chartType = "lc" | |
$chartData = [string]::join(",", $valueArray) | |
$chartLabel = [string]::join("|", $labelArray) | |
Write-Output "http://chart.apis.google.com/chart?chtt=$title&cht=$chartType&chd=t:$chartdata&chs=$size&chl=$chartLabel&chds=a&chxt=y" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sample: http://chart.apis.google.com/chart?chtt=MyChart&cht=lc&chd=t:0.9263241,0.9152812,0.9272396,0.9138086,0.9270355&chs=700x350&chl=0|1|2|3|4&chds=a&chxt=y