Peter Stockings e947feb3e3 refactor(sql_explorer): Replace Plotly with SVG rendering for plots
Replaces the Plotly-based graph generation in the SQL Explorer with direct SVG rendering within an HTML template, similar to the exercise progress sparklines.

- Modifies `routes/sql_explorer.py` endpoints (`plot_query`, `plot_unsaved_query`) to fetch raw data instead of using pandas/Plotly.
- Adds `utils.prepare_svg_plot_data` to process raw SQL results, determine plot type (scatter, line, bar, table), normalize data, and prepare it for SVG.
- Creates `templates/partials/sql_explorer/svg_plot.html` to render the SVG plot with axes, ticks, labels, and basic tooltips.
- Removes the `generate_plot` function's usage for SQL Explorer and the direct dependency on Plotly for this feature.
2025-04-15 19:34:26 +10:00
2025-02-01 21:26:52 +11:00
2022-07-15 21:06:27 +10:00
2025-04-12 21:17:19 +10:00
2022-09-17 16:42:50 +10:00
2022-09-10 15:09:17 +10:00
2022-09-17 13:38:41 +10:00

Workout tracker

Track topsets over time.

Setup

Install python>3

Install dependencies

$ pip install -r requirements.txt

Enable development mode

PS $ENV:FLASK_ENV='development'

Set database url, either setup postgres database locally use migration script or expose deployed one

$Env:DATABASE_URL = 'postgres://postgres:***@***:***/***'

Start application:

flask run

Features

  • Track topsets for each workout
  • Multi user
  • Authentication/Authorisation
Description
No description provided
Readme 4 MiB
Languages
HTML 43.9%
Python 35.5%
Jupyter Notebook 18.8%
PLpgSQL 1.2%
CSS 0.6%