lovasoa / SQLpage

Fast SQL-only data application builder. Automatically build a UI on top of SQL queries.
https://sql.datapage.app
MIT License
1.49k stars 81 forks source link

Add an optional CSV export on chart component #65

Closed lovasoa closed 1 year ago

lovasoa commented 1 year ago

Discussed in https://github.com/lovasoa/SQLpage/discussions/60

Originally posted by **pascalr0410** August 14, 2023 Hello, Could it be possible to add an optional "Download CSV" on each chart component, on the top right corner ? It could reduce redudancy of sql and be more effiency usage of the screen space. ```sql SELECT 'chart' as component, 'Expenses' as title, 'bar' as type, 1 as stacked, 1 as horizontal , 1 as csvExport; ``` Regards, Pascal.
lovasoa commented 1 year ago

@pascalr0410 : This is now implemented, and will be in the next release of SQLPage. The syntax will be the following:

SELECT 'chart' as component, 1 as toolbar; -- displays a toolbar with download options
pascalr0410 commented 1 year ago

@lovasoa I tried it, it works great! :+1: