BarChart
BarChart()
- compatible with AHK_L and AHK Basic
- no globals
- has 20 built-in skins + you can make your own
- requires Gdip.ahk by Tic
Download BarChart.zip which includes: BarChart.ahk, examples, Gdip.ahk, screenshots.
Short documentation and license are in BarChart.ahk's comments. Learn from examples.
See also:
- Excel Charts by Xx7
- XGraph by SKAN
My Website • Recommended: AutoHotkey Unicode 32-bit • Join DropBox, Copy
EDIT: After trying it out... Fantastic! These are VERY well done!
My Website • Recommended: AutoHotkey Unicode 32-bit • Join DropBox, Copy
it would be nice to have other kinds of graphs, though:
1. vertical ones (just rotate the current ones by 90 degrees)
2. one line graphs:
The newest update (which was finished 2 months ago but not released yet because of www.autohotkey.net problems) has example which demostrates vertical bar charts - column charts. You can already do it with the current version by using Gdip_RotateBitmap() function which I posted in Tic's GDI+ lib thread.vertical ones (just rotate the current ones by 90 degrees)
Maybe I'll do it once... Multi lines in one chart should be supported too.one line graphs
My Website • Recommended: AutoHotkey Unicode 32-bit • Join DropBox, Copy
BarChart updated: simplified usage, new possibilities, new examples.
My Website • Recommended: AutoHotkey Unicode 32-bit • Join DropBox, Copy
Hi L1,
This is phenomenal!! I'm really liking the "DarkT" skin.
Quick question for you.. without changing the bars, would it be possible to change the age "27" to "Oldest".. and age "22" to "Youngest". Any quick way to hide the actual numbers and just have bars and text?
Another really "minor" adjustment that could be made is if there are negative values, the fade might look abit more symmetrical if it went the other way?? or was this your preference?
This is awesome! I report on a lot of data and frequently graph it in Excel. This opens up the possibility of doing it all in AutoHotKey!
Such feature is not built in BarChart. What you could do is to create BarChar bitmap - pBitmap := BarChart(), than get Gdip_GraphicsFromImage(), and than overwrite part of bar where "27 & 22" are written; first with rectangle - Gdip_FillRoundedRectangle() or Gdip_FillRectangle, and than write Gdip_TextToGraphics().without changing the bars, would it be possible to change the age "27" to "Oldest".. and age "22" to "Youngest".
Yes. Add DisplayValues:0 in the Options parameter.Any quick way to hide the actual numbers and just have bars and text?
Hm... yes... I'll think about changing that. For now use other skins which have vertical bar gradient or use BarColorDirection:1 in Options parameter which actually represents WrapMode in Gdip_CreateLineBrushFromRect(), and that is;if there are negative values, the fade might look abit more symmetrical if it went the other way?
My Website • Recommended: AutoHotkey Unicode 32-bit • Join DropBox, Copy
var_1 := "Steve: Oldest" var_2 := "Jenny: Youngest" AgeChart = ( Mike 24 %var_1% 27 Chris 25 %var_2% 22 Marry 23 ) ;....etc... BarChart(AgeChart, "AgePic", 1, "Age", Skin, "DisplayValues:0")
Ha! You know how to use BarChart() better than me! Respect!
My Website • Recommended: AutoHotkey Unicode 32-bit • Join DropBox, Copy
L1, your script got me thinking...
I was looking for a way to create a graph in Excel, then show it as a GUI. Please check out my script Excel Charts, if you have time!