Very nice, indeed.
Simple Bar Chart Graph on Canvas Gadget
Re: Simple Bar Chart Graph on Canvas Gadget
If I change the file contained the HightScore.txt with this data:
This is what I get:

How to fix the lag graphics? I try to change the line 147 but to no avail.
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

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
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
works fine now thank you.

