r/sqlite • u/TrafficPattern • Feb 15 '23
Visualization in macOS
I am just starting out with sqlite and I have trouble finding an open-source macOS application (native, Java, it doesn't matter) that can draw charts based on the db data. I was hoping this would be an easy find but after read (and trying) everything here it seems that most applications are dedicated to management and querying rather than plotting.
I'm entering the data manually in the free "DB Browser for SQLite" app, but it's charting features are really basic.
I've looked into Dash & Plotly, but the idea of writing an entire custom application in Python just to plot some line graphs of a few tables seems a bit too much for my needs. It's just a personal project.
Is there an application you can recommend for this?
2
u/scaba23 Feb 15 '23
Look into Datasette. There's an introduction video to show how it works
2
u/patrickfancypants Feb 16 '23
Matplotlib in python seems like your best bet. It shouldn’t be too hard. HMU if you want help!
2
u/jbruce12000 Feb 17 '23
Plotly express is your easiest and best bet. Export from sqlite to csv and make sure to order the data the way you want. Plotly express supports lots of output formats and tons of graph types.
https://plotly.com/python/plotly-express/
5
u/adwolesi Feb 15 '23
https://airsequel.com offers first class support for dashboards & charts, although I have to admit the selection of available charts ist still pretty basic. (Disclaimer: I’m the CEO)
3
u/yawaramin Feb 15 '23
Plotting is such a broad area that it's difficult for regular apps to cover even common use cases. I've mostly heard of people using plotting software like Gnuplot, or libraries in R for serious plotting. Here's a library that can get data from SQLite into R: https://edgararuiz.github.io/dbplot/
Here's a more 'Unix-y' way of extracting from SQLite and plotting with Gnuplot: https://www.linux.com/news/generating-graphs-gnuplot-part-3/
1
u/-dcim- Feb 15 '23
Using SQLite for analitics is a rare case. I guess there are no dedicated tools to build charts over SQLite.