Hi there Dev. I don’t know about any official graph APIs or tools but you could make this effect with use of the line API (using display.newLine). Use this to draw x and y values for a line and then you can append x and y coordinates for further lines extending from a single line. The lines can be coloured blue or red using object:setColor(r,g,b) .
Finally, you want to save the graph as an image. This code can help you based from the ScreenCaptureToFile Sample Code included in Corona SDK (Lines 50-52 of main.lua)
[lua] – Capture the screen and save it to file.
local baseDir = system.DocumentsDirectory
display.save( display.currentStage, “entireScreen.jpg”, baseDir )[/lua]
For more reading on the display.newLine API check it out here: http://developer.anscamobile.com/content/displaynewline
If you need ideas on how to set the x and y values on the lines, try getting your screen size you are developing for and dividing it by the maximum value you need. Eg. 480 (screen size) / 5000 (maximum score) for the y-axis. This ratio can then be multiplied against your score (480/5000 * 2360) = 226.56. Rounding this result can give you the coordinate you need.
I hope I helped and good luck with your Corona journey,
Luke. [import]uid: 75643 topic_id: 15850 reply_id: 58577[/import]