Set up and document uPlot
This commit is contained in:
parent
8496c557f6
commit
9caf664b10
7 changed files with 6909 additions and 0 deletions
13
README.md
13
README.md
|
|
@ -52,3 +52,16 @@ should use the dev database instead of `.sqlx/`, but only in your IDE.
|
|||
|
||||
[sqlx]: https://github.com/launchbadge/sqlx/blob/main/sqlx-cli/README.md
|
||||
[ra-opt]: https://rust-analyzer.github.io/manual.html#rust-analyzer.check.extraEnv
|
||||
|
||||
### uPlot
|
||||
|
||||
For displaying graphs, the [uPlot library][uplot] is used. Because this is the
|
||||
only dependency on the JS side, I decided not to use a package manager and
|
||||
instead just add the library files directly.
|
||||
|
||||
To update the uPlot files, run `./meta/update_uplot`. This will download the
|
||||
required files from uPlot's master. The `uPlot.d.ts` file's export statement is
|
||||
patched to resemble the one in `uPlot.js`. This way I don't have to enable
|
||||
`esModuleInterop` in my `tsconfig.json`.
|
||||
|
||||
[uplot]: https://github.com/leeoniya/uPlot/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue