django-sql-dashboard icon indicating copy to clipboard operation
django-sql-dashboard copied to clipboard

Figure out a way to display a title for individual queries/charts

Open jimmybutton opened this issue 3 years ago • 1 comments
trafficstars

Many thanks for this great package!

When creating a dashboard with multiple queries and charts, I'd like to be able to give all or some of them (especially the charts) a title so others can understand what the graph is showing without having to look at the SQL query. So what I ended up doing is having additional queries in between charts such as select '## Users per day' as markdown. It kinda does the job, but it ends up looking a bit weird as the title is then quite far away from the chart itself.

A possible solution could be having an optional title field on the DashboardQuery object. What do you think about that?

jimmybutton avatar Aug 12 '22 08:08 jimmybutton

Yeah I've been using that same trick - having queries which do select '## Users per day' as markdown - and it's not exactly elegant.

I like your suggestion of having an optional title.

simonw avatar Aug 15 '22 23:08 simonw