dolthub / dolthub-issues

Issues for dolthub.com
https://dolthub.com
4 stars 1 forks source link

Charts in Saved Queries Tab #544

Open timsehn opened 4 months ago

timsehn commented 4 months ago

This was inspired by customer call with the folks that build a thing called ChartSQL. It's not released yet but there is an opportunity to partner.

The idea is, in SQL comments you can put chart configuration and then a tool will render the charts. So for DoltHub we could leverage saved queries.

So, in SQL as a saved query, you would have something like:

-- @type: line
-- @scale: 10
select (date, value) from t;

Then on DoltHub with Saved Queries you would get a little chart icon:

image

And when you clicked it, it would render the chart not the table.