SLSCoder Posted October 27, 2022 Share Posted October 27, 2022 (edited) How can I generate charts (bar, line pie, donut) in php that will create files (jpg, png, svg, ...) or base64 on the server? Does a library exist (preferably open source) that can do it? If not is there a service that I can connect to via cURL? I'm trying to export reports from php in various formats (PHPWord, PHPSpreadsheet, PHPPresentation, mPDF, HTML) that will include charts. The html must be basic html (no scripting) and runnable without an internet connection; just a report. Edited October 27, 2022 by SLSCoder Quote Link to comment Share on other sites More sharing options...
Barand Posted October 27, 2022 Share Posted October 27, 2022 A couple of minutes Googling came up with this contender... https://jpgraph.net/ Or you could always just code your own charts. Quote Link to comment Share on other sites More sharing options...
SLSCoder Posted October 27, 2022 Author Share Posted October 27, 2022 (edited) I can't believe it. What did you google? I tried a few things. The last was this: php charts -javascript -jquery I don't suppose you could come up with an open-source version for commercial use?? Thanks. Also, how can I code my own charts? I'd be interested in that. If you could point me in a direction that would help. Edited October 27, 2022 by SLSCoder Quote Link to comment Share on other sites More sharing options...
Barand Posted October 27, 2022 Share Posted October 27, 2022 25 minutes ago, SLSCoder said: What did you google? "php charts without javascript" 1 Quote Link to comment Share on other sites More sharing options...
Zane Posted October 27, 2022 Share Posted October 27, 2022 If you're looking for an API-esque way of doing it, you can send URL params to this place and get an image backhttps://documentation.image-charts.com/ 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.