Page 2 of 2

Re: Simple Bar Chart Graph on Canvas Gadget

Posted: Fri Oct 04, 2013 10:10 pm
by davido
@IdeasVacuum

Very nice, indeed. :D

Re: Simple Bar Chart Graph on Canvas Gadget

Posted: Thu Oct 16, 2014 4:13 am
by metalos
If I change the file contained the HightScore.txt with this data:

Code: Select all

Test1,1
Test2,2
Test3,1
Test4,145
Test5,8
Test6,5
Test7,158
Test8,4
Test9,8
Test10,4
Test11,33
Test12,211
Test13,1100
Test14,130
Test15,39
Test16,19
Test17,19
Test18,41
Test19,5
Test20,4
This is what I get:

Image

How to fix the lag graphics? I try to change the line 147 but to no avail.

Re: Simple Bar Chart Graph on Canvas Gadget

Posted: Thu Oct 16, 2014 3:27 pm
by Tenaja
An edit like this helps to prevent the score from overwriting the names, when the score is very low:

Code: Select all

			iScoreX = ((iChartX0 + iW) - (TextWidth(StrD(Scores.Player()\iScore,0)) + 5))
			If iScoreX < 150 : iScoreX = 150 : EndIf   ; ADD this line after the above line, in proc DrawBarChart()

Re: Simple Bar Chart Graph on Canvas Gadget

Posted: Thu Oct 16, 2014 5:19 pm
by metalos
works fine now thank you.