BASIC8
Not enough ratings
GraphingTool
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
5.027 KB
19 Apr, 2022 @ 11:41am
1 Change Note ( view )

Subscribe to download
GraphingTool

Description
A simple set of functions for generating graphs and info displays

-------------progress bar-------------
DrawProgressBar(x,y,size,fill,color)
.....x= X Placement
.....y= Y placement
.....size= bracket length
.....fill= amount of bar filled vs size
.....color= color of filled bar

DrawVertProgressBar(x,y,size,fill,color)
.....(same as above but bar is VERTICAL)

-------------pie chart-------------
DrawPieChart(x,y,r,values,colors)
.....x= X Placement
.....y= Y placement
.....r= radius / Pie Size
.....values= list of numbers adding up to 100
.....colors= list of RGBA values (list len must be equal to values len)

-------------line graph-------------
DrawLineChart(x,y,sizeX,sizeY,listOfLists,colors)
.....x= X Placement
.....y= Y placement
.....sizeX= X axis length
.....sizeY= Y axis length
.....listOfLists= A list containing integer lists, each sub list is a line and the numbers are points
.....colors= list of RGBA values (list len must be equal to listOfLists len)

-------------bar graph-------------
DrawBarChart(x,y,sizeX,sizeY,values,colors)
.....x= X Placement
.....y= Y placement
.....sizeX= X axis length
.....sizeY= Y axis length
.....values= list of numbers for bar height
.....colors= list of RGBA values (list len must be equal to values len)

DrawHorzBarChart(x,y,sizeX,sizeY,values,colors)
.....(Same as above but bars are HORIZONTAL)

(Will add more documentation later)
3 Comments
Doom Destroyer 28 Apr, 2022 @ 2:27am 
glad i could help im just the person who reviews stuff and hopefully get more people to comment
HopelessDecoy  [author] 24 Apr, 2022 @ 6:10am 
@Doom Destroyer That is what I was aiming for! I have a few improvements in mind, we'll see when I get to them
Doom Destroyer 24 Apr, 2022 @ 3:23am 
simple but effective 7/10